evas render2 region - handle if src region is empty correctly on add
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 11 Jul 2016 13:16:06 +0000 (22:16 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 11 Jul 2016 13:16:06 +0000 (22:16 +0900)
fix coverity CID 1313542

src/lib/evas/canvas/render2/region.c

index 5175ee1..4a13e10 100644 (file)
@@ -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))