gdi32/enhmfdrv: Don't update document bounds in Rectangle within a path.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3a12eb2083
commit
44f860daff
|
@ -248,6 +248,7 @@ BOOL EMFDRV_Ellipse( PHYSDEV dev, INT left, INT top, INT right, INT bottom )
|
|||
*/
|
||||
BOOL EMFDRV_Rectangle(PHYSDEV dev, INT left, INT top, INT right, INT bottom)
|
||||
{
|
||||
EMFDRV_PDEVICE *physDev = (EMFDRV_PDEVICE*) dev;
|
||||
EMRRECTANGLE emr;
|
||||
INT temp;
|
||||
|
||||
|
@ -270,7 +271,8 @@ BOOL EMFDRV_Rectangle(PHYSDEV dev, INT left, INT top, INT right, INT bottom)
|
|||
emr.rclBox.right = right;
|
||||
emr.rclBox.bottom = bottom;
|
||||
|
||||
EMFDRV_UpdateBBox( dev, &emr.rclBox );
|
||||
if(!physDev->path)
|
||||
EMFDRV_UpdateBBox( dev, &emr.rclBox );
|
||||
return EMFDRV_WriteRecord( dev, &emr.emr );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue