forked from enlightenment/efl
Evas filters: Add some crash safety
This commit is contained in:
parent
14c1434960
commit
4234832713
|
@ -1814,6 +1814,8 @@ _clip_to_target(int *sx /* OUT */, int *sy /* OUT */, int sw, int sh,
|
||||||
(*rows) = sh;
|
(*rows) = sh;
|
||||||
if ((*rows) > dh) (*rows) = dh;
|
if ((*rows) > dh) (*rows) = dh;
|
||||||
}
|
}
|
||||||
|
if ((*cols) < 0) *cols = 0;
|
||||||
|
if ((*rows) < 0) *rows = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef FILTERS_DEBUG
|
#ifdef FILTERS_DEBUG
|
||||||
|
|
Loading…
Reference in New Issue