diff options
author | Jan Holesovsky <kendy@suse.cz> | 2013-04-24 16:19:56 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2013-04-24 16:20:38 +0200 |
commit | 1035150cea85678075583deda612dde52867c125 (patch) | |
tree | fe172bddf47234faaefa011cc98cf43bcdab4ea9 | |
parent | 0b39358aaf723b26b5effb7245f38ad960cc609a (diff) |
More places where we can suppress output.
Change-Id: Ib316bf40bb9b9afeb5fbdf9281f2d3b9539e346f
-rw-r--r-- | vcl/source/gdi/outdev.cxx | 9 |
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 |