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:
parent
727d623d23
commit
5e429d679c
1 changed files with 4 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue