diff options
author | Thorsten Behrens <tbehrens@suse.com> | 2012-10-11 21:21:40 +0200 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2012-10-11 21:33:04 +0200 |
commit | df99bb3d0de567fa34f7f6edfca4f736abb0efa2 (patch) | |
tree | 74fbdc49d14ae90bc8bcda1dcefc2edab8c00113 /drawinglayer | |
parent | 5ef0f1dc9a70c20fe6879832b782a0c34724353f (diff) |
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
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx | 20 |
1 files changed, 0 insertions, 20 deletions
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 |