gdi32/enhmfdrv: Don't update document bounds in LineTo 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:43 +02:00 committed by Alexandre Julliard
parent 44f860daff
commit c019c68b45
1 changed files with 3 additions and 1 deletions

View File

@ -53,6 +53,7 @@ BOOL EMFDRV_MoveTo(PHYSDEV dev, INT x, INT y)
*/
BOOL EMFDRV_LineTo( PHYSDEV dev, INT x, INT y )
{
EMFDRV_PDEVICE *physDev = (EMFDRV_PDEVICE*) dev;
POINT pt;
EMRLINETO emr;
RECTL bounds;
@ -72,7 +73,8 @@ BOOL EMFDRV_LineTo( PHYSDEV dev, INT x, INT y )
bounds.right = max(x, pt.x);
bounds.bottom = max(y, pt.y);
EMFDRV_UpdateBBox( dev, &bounds );
if(!physDev->path)
EMFDRV_UpdateBBox( dev, &bounds );
return TRUE;
}