From df99bb3d0de567fa34f7f6edfca4f736abb0efa2 Mon Sep 17 00:00:00 2001 From: Thorsten Behrens Date: Thu, 11 Oct 2012 21:21:40 +0200 Subject: Fix fdo#35278 - don't generate hidden primitive rectangles I'm really rather certain we don't need to generate those non-stroked, non-filled rects in metafiles - at least not for the slideshow. The comment states otherwise, alas, there's no further explanation in any referenced bug etc. Change-Id: If7040b46900ea32515f29cf371897a693858b100 --- .../source/processor2d/vclmetafileprocessor2d.cxx | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'drawinglayer') diff --git a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx index b592284c80c1..5f7d8e75c8fb 100644 --- a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx @@ -1704,26 +1704,6 @@ namespace drawinglayer RenderModifiedColorPrimitive2D(static_cast< const primitive2d::ModifiedColorPrimitive2D& >(rCandidate)); break; } - case PRIMITIVE2D_ID_HIDDENGEOMETRYPRIMITIVE2D : - { - // HiddenGeometryPrimitive2D; to rebuilt the old MetaFile creation, it is necessary to - // not ignore them (as it was thought), but to add a MetaFile entry for them. - basegfx::B2DRange aInvisibleRange(rCandidate.getB2DRange(getViewInformation2D())); - - if(!aInvisibleRange.isEmpty()) - { - aInvisibleRange.transform(maCurrentTransformation); - const Rectangle aRectLogic( - (sal_Int32)floor(aInvisibleRange.getMinX()), (sal_Int32)floor(aInvisibleRange.getMinY()), - (sal_Int32)ceil(aInvisibleRange.getMaxX()), (sal_Int32)ceil(aInvisibleRange.getMaxY())); - - mpOutputDevice->SetFillColor(); - mpOutputDevice->SetLineColor(); - mpOutputDevice->DrawRect(aRectLogic); - } - - break; - } case PRIMITIVE2D_ID_UNIFIEDTRANSPARENCEPRIMITIVE2D : { // for metafile: Need to examine what the pure vcl version is doing here actually -- cgit v1.2.3