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.
This commit is contained in:
Thorsten Behrens 2010-12-15 02:32:07 +01:00 committed by Robert Nagy
parent 727d623d23
commit 5e429d679c

View file

@ -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,