aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/render2
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-07-11 22:16:06 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-07-11 22:16:06 +0900
commit52f752f73d592d8673012b119528cde3578678a1 (patch)
tree84c9045a9985a316d39b54c48972940007cef767 /src/lib/evas/canvas/render2
parentevas engine cache - drop useless iff that assert already checked (diff)
downloadefl-52f752f73d592d8673012b119528cde3578678a1.tar.gz
evas render2 region - handle if src region is empty correctly on add
fix coverity CID 1313542
Diffstat (limited to 'src/lib/evas/canvas/render2')
-rw-r--r--src/lib/evas/canvas/render2/region.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lib/evas/canvas/render2/region.c b/src/lib/evas/canvas/render2/region.c
index 5175ee147a..4a13e103a0 100644
--- a/src/lib/evas/canvas/render2/region.c
+++ b/src/lib/evas/canvas/render2/region.c
@@ -847,12 +847,7 @@ region_add(Region *dest, Region *source)
}
// Region 2 is empty
- if (PIXREGION_NIL(source))
- {
- if (PIXREGION_NAR(source)) return _region_break(dest);
- if (dest != source) return region_copy(dest, source);
- return EINA_TRUE;
- }
+ if (PIXREGION_NIL(source)) return EINA_TRUE;
// Region 1 completely subsumes region 2
if (!dest->data && CONTAINS(&dest->bound, &source->bound))