forked from enlightenment/efl
evas render2 region - handle if src region is empty correctly on add
fix coverity CID 1313542
This commit is contained in:
parent
485074df3a
commit
52f752f73d
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue