summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2013-04-24 16:19:56 +0200
committerJan Holesovsky <kendy@suse.cz>2013-04-24 16:28:18 +0200
commitf650b3a50c1490f3773003f5bcdf2fdebe0beb12 (patch)
tree5f15157e57e1f95ad1f09351e480e19b1d044d4f
parent617dddda6258d63d7f2307f38322a411670e6ed8 (diff)
More places where we can suppress output.
Change-Id: Ib316bf40bb9b9afeb5fbdf9281f2d3b9539e346f
-rw-r--r--vcl/source/gdi/outdev.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/vcl/source/gdi/outdev.cxx b/vcl/source/gdi/outdev.cxx
index 2872262ddb10..f134388fbacb 100644
--- a/vcl/source/gdi/outdev.cxx
+++ b/vcl/source/gdi/outdev.cxx
@@ -2064,8 +2064,8 @@ void OutputDevice::DrawPolyPolygon( const basegfx::B2DPolyPolygon& rB2DPolyPoly
void OutputDevice::ImpDrawPolyPolygonWithB2DPolyPolygon(const basegfx::B2DPolyPolygon& rB2DPolyPoly)
{
- // AW: Do NOT paint empty PolyPolygons
- if(!rB2DPolyPoly.count())
+ // Do not paint empty PolyPolygons
+ if(!rB2DPolyPoly.count() || !IsDeviceOutputNecessary())
return;
// we need a graphics
@@ -2192,9 +2192,8 @@ void OutputDevice::DrawPolyLine(
mpMetaFile->AddAction( new MetaPolyLineAction( aToolsPolygon, aLineInfo ) );
}
-
- // AW: Do NOT paint empty PolyPolygons
- if(!rB2DPolygon.count())
+ // Do not paint empty PolyPolygons
+ if(!rB2DPolygon.count() || !IsDeviceOutputNecessary())
return;
// we need a graphics