[Libreoffice-commits] .: sdext/source
Robert Nagy
rnagy at kemper.freedesktop.org
Sat Dec 18 06:13:29 PST 2010
sdext/source/pdfimport/tree/genericelements.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 6d13b8c3e797ee25eec8fb91db19f78c9530bc0b
Author: Thorsten Behrens <tbehrens at novell.com>
Date: Wed Dec 15 02:32:07 2010 +0100
Fix filled polygons on pdfimport
This fixes fdo#32330, by explicitely closing filled polygons on
ODF streaming-out. LibO does not fill polygons, even if specifically
asked to - unless they're closed on coordinate level.
diff --git a/sdext/source/pdfimport/tree/genericelements.cxx b/sdext/source/pdfimport/tree/genericelements.cxx
index 5242a6b..d8696dd 100644
--- a/sdext/source/pdfimport/tree/genericelements.cxx
+++ b/sdext/source/pdfimport/tree/genericelements.cxx
@@ -164,6 +164,10 @@ void PolyPolyElement::updateGeometry()
y = aRange.getMinY();
w = aRange.getWidth();
h = aRange.getHeight();
+
+ // fdo#32330 - non-closed paths will not show up filled in LibO
+ if( Action & (PATH_FILL | PATH_EOFILL) )
+ PolyPoly.setClosed(true);
}
void PolyPolyElement::visitedBy( ElementTreeVisitor& rVisitor,
More information about the Libreoffice-commits
mailing list