evas render2 region - handle if src region is empty correctly on add

fix coverity CID 1313542
This commit is contained in:
Carsten Haitzler 2016-07-11 22:16:06 +09:00
parent 485074df3a
commit 52f752f73d
1 changed files with 1 additions and 6 deletions

View 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))