gdi32: Don't update the metafile bounding box in ExtTextOut if there's no rectangle.
This commit is contained in:
parent
cf8c3eca41
commit
872feb47c4
|
@ -826,11 +826,10 @@ BOOL CDECL EMFDRV_ExtTextOut( PHYSDEV dev, INT x, INT y, UINT flags,
|
||||||
pemr->rclBounds.bottom = y + textHeight + 1;
|
pemr->rclBounds.bottom = y + textHeight + 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
EMFDRV_UpdateBBox( dev, &pemr->rclBounds );
|
||||||
|
|
||||||
no_bounds:
|
no_bounds:
|
||||||
ret = EMFDRV_WriteRecord( dev, &pemr->emr );
|
ret = EMFDRV_WriteRecord( dev, &pemr->emr );
|
||||||
if(ret)
|
|
||||||
EMFDRV_UpdateBBox( dev, &pemr->rclBounds );
|
|
||||||
HeapFree( GetProcessHeap(), 0, pemr );
|
HeapFree( GetProcessHeap(), 0, pemr );
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue