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
This commit is contained in:
Thorsten Behrens
2012-10-11 21:21:40 +02:00
parent 5ef0f1dc9a
commit df99bb3d0d

View File

@@ -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