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:
Piotr Caban 2016-04-28 18:47:30 +02:00 committed by Alexandre Julliard
parent 3a12eb2083
commit 44f860daff
1 changed files with 3 additions and 1 deletions

View File

@ -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) BOOL EMFDRV_Rectangle(PHYSDEV dev, INT left, INT top, INT right, INT bottom)
{ {
EMFDRV_PDEVICE *physDev = (EMFDRV_PDEVICE*) dev;
EMRRECTANGLE emr; EMRRECTANGLE emr;
INT temp; 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.right = right;
emr.rclBox.bottom = bottom; emr.rclBox.bottom = bottom;
EMFDRV_UpdateBBox( dev, &emr.rclBox ); if(!physDev->path)
EMFDRV_UpdateBBox( dev, &emr.rclBox );
return EMFDRV_WriteRecord( dev, &emr.emr ); return EMFDRV_WriteRecord( dev, &emr.emr );
} }