Kaydet (Commit) 5e429d67 authored tarafından Thorsten Behrens's avatar Thorsten Behrens Kaydeden (comit) Robert Nagy

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.
üst 727d623d
...@@ -164,6 +164,10 @@ void PolyPolyElement::updateGeometry() ...@@ -164,6 +164,10 @@ void PolyPolyElement::updateGeometry()
y = aRange.getMinY(); y = aRange.getMinY();
w = aRange.getWidth(); w = aRange.getWidth();
h = aRange.getHeight(); 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, void PolyPolyElement::visitedBy( ElementTreeVisitor& rVisitor,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment