summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@novell.com>2010-12-15 02:32:07 +0100
committerThorsten Behrens <tbehrens@novell.com>2010-12-15 10:08:01 +0100
commit2b7dfb20b1d82981604972b69477ba0ba922d077 (patch)
treec4093eeeda68a9f979847bbc6a34a732a886ff90
parente76befda7ccf15bb6f60de1916157d36e6e1331a (diff)
Fix filled polygons on pdfimportfeature/helppack
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.
-rw-r--r--sdext/source/pdfimport/tree/genericelements.cxx4
1 files changed, 4 insertions, 0 deletions
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,