summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drawinglayer/source/processor2d/vclprocessor2d.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/drawinglayer/source/processor2d/vclprocessor2d.cxx b/drawinglayer/source/processor2d/vclprocessor2d.cxx
index 7f2ab70ffc6e..0f580e8ff767 100644
--- a/drawinglayer/source/processor2d/vclprocessor2d.cxx
+++ b/drawinglayer/source/processor2d/vclprocessor2d.cxx
@@ -1351,12 +1351,14 @@ namespace drawinglayer
if(!aRectangle.IsEmpty())
{
+ bool bWillReallyRender = mpOutputDevice->IsDeviceOutputNecessary();
// try to paint EPS directly without fallback visualisation
- const bool bEPSPaintedDirectly(mpOutputDevice->DrawEPS(
+ const bool bEPSPaintedDirectly = bWillReallyRender &&
+ mpOutputDevice->DrawEPS(
aRectangle.TopLeft(),
aRectangle.GetSize(),
rEpsPrimitive2D.getGfxLink(),
- 0));
+ 0);
if(!bEPSPaintedDirectly)
{