[Libreoffice-commits] .: Branch 'libreoffice-3-3' - sdext/source

Thorsten Behrens thorsten at kemper.freedesktop.org
Wed Dec 15 01:08:18 PST 2010


 sdext/source/pdfimport/tree/genericelements.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 2b7dfb20b1d82981604972b69477ba0ba922d077
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