- Check for zero rectangles in REGION_bXformRgn.
CORE-12204

svn path=/trunk/; revision=73881
This commit is contained in:
Kamil Hornicek 2017-02-22 10:48:41 +00:00
parent 1d7676d1e0
commit f368db7eeb

View file

@ -2051,6 +2051,10 @@ REGION_bXformRgn(
RECT rect;
BOOL bResult;
/* Check for zero rectangles and return TRUE for translation only matrices */
if (prgn->rdh.nCount < 1)
return pmx->flAccel & XFORM_UNITY;
/* Check if this is a scaling only matrix (off-diagonal elements are 0 */
if (pmx->flAccel & XFORM_SCALE)
{