diff options
author | Thorsten Behrens <tbehrens@novell.com> | 2010-12-15 02:32:07 +0100 |
---|---|---|
committer | Robert Nagy <robert@openbsd.org> | 2010-12-18 15:13:18 +0100 |
commit | 5e429d679c2154a5b4601cde132021f9bf23d607 (patch) | |
tree | f20b3a1a50b469c50d4f29f7b64914f994524c86 /sdext | |
parent | 727d623d232e4612253ecf6308eda0e71f7dd023 (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.
Diffstat (limited to 'sdext')
-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, |