diff options
author | Thorsten Behrens <tbehrens@novell.com> | 2010-12-15 02:32:07 +0100 |
---|---|---|
committer | Thorsten Behrens <tbehrens@novell.com> | 2010-12-15 10:08:01 +0100 |
commit | f1be5590a82e5ccbcafe09f57199806ac59455fc (patch) | |
tree | 55940b4e157938c3657f92c61ff1261a25312a5f | |
parent | 16a3e0e4df4f6808d28a2579f653cd1e1ad741d5 (diff) |
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.
-rw-r--r-- | sdext/source/pdfimport/tree/genericelements.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sdext/source/pdfimport/tree/genericelements.cxx b/sdext/source/pdfimport/tree/genericelements.cxx index a8a0c5294d40..e6a50a0331db 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, |