summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2013-04-24 16:19:56 +0200
committerPetr Mladek <pmladek@suse.cz>2013-05-07 13:21:01 +0200
commit155bfc9803759e54b770e6d90eaef812999f9d77 (patch)
tree62d40b320aba376f8bc9f503380f24aa46a7e1b9 /vcl
parent5e64777d0813a31539e43ddb821eabf5407a3544 (diff)
More places where we can suppress output.
Change-Id: Ib316bf40bb9b9afeb5fbdf9281f2d3b9539e346f
Diffstat (limited to 'vcl')
-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 d34cea9f9643..2f4cf0cc7440 100644
--- a/vcl/source/gdi/outdev.cxx
+++ b/vcl/source/gdi/outdev.cxx
@@ -2175,8 +2175,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
@@ -2306,9 +2306,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