diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2015-05-18 00:47:05 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2015-05-18 00:47:05 +0200 |
commit | b57584f9b546b677a72fa94b506b096d7ec2c195 (patch) | |
tree | 7738075da629fa3470b23270a3be1ad425c83da1 | |
parent | c63103583cfa82e17573eb9229571137ad523e32 (diff) |
LibreOffice fills only closed paths
Change-Id: Ic00cb589c28d89475e40f258ed4ade162c3cac6d
-rw-r--r-- | src/lib/FHCollector.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/FHCollector.cpp b/src/lib/FHCollector.cpp index 8d312ab..ceef492 100644 --- a/src/lib/FHCollector.cpp +++ b/src/lib/FHCollector.cpp @@ -27,7 +27,7 @@ #define DEBUG_BOUNDING_BOX 0 #endif #ifndef DUMP_TILE_FILLS -#define DUMP_TILE_FILLS 1 +#define DUMP_TILE_FILLS 0 #endif #define FH_UNINITIALIZED(pI) \ @@ -567,7 +567,10 @@ void libfreehand::FHCollector::_outputPath(const libfreehand::FHPath *path, ::li librevenge::RVNGPropertyListVector propVec; fhPath.writeOut(propVec); - _composePath(propVec, fhPath.isClosed()); + if (propList["draw:fill"] && propList["draw:fill"]->getStr() != "none") + _composePath(propVec, true); + else + _composePath(propVec, fhPath.isClosed()); librevenge::RVNGPropertyList pList; pList.insert("svg:d", propVec); if (contentId) |