summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2011-06-23 16:38:31 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2011-06-23 16:38:31 +0200
commit1178be39aa0b89ca991667a01bb4b8155c75ef14 (patch)
tree7ae3313ff14eb6f5fe4a6c3d3ef467f9aa13f074
parent53616ed07b4725c3bb592cf1c508eb75fe1283c0 (diff)
And now the working version (hopefully)libvisio-0.0.1
-rw-r--r--src/lib/VSD11Parser.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/lib/VSD11Parser.cpp b/src/lib/VSD11Parser.cpp
index 8bf1f32..99273a8 100644
--- a/src/lib/VSD11Parser.cpp
+++ b/src/lib/VSD11Parser.cpp
@@ -950,15 +950,13 @@ void libvisio::VSD11Parser::_flushCurrentPath(libwpg::WPGPaintInterface *painter
y = (iter->second)["svg:y"]->getDouble();
startX = x;
startY = y;
-
- path.append(iter->second);
}
else
{
x = (iter->second)["svg:x"]->getDouble();
y = (iter->second)["svg:y"]->getDouble();
- path.append(iter->second);
}
+ path.append(iter->second);
}
else
{
@@ -992,15 +990,13 @@ void libvisio::VSD11Parser::_flushCurrentPath(libwpg::WPGPaintInterface *painter
y = (iter2())["svg:y"]->getDouble();
startX = x;
startY = y;
-
- path.append(iter2());
}
else
{
x = (iter2())["svg:x"]->getDouble();
y = (iter2())["svg:y"]->getDouble();
- path.append(iter2());
}
+ path.append(iter2());
}
}
}
@@ -1011,8 +1007,9 @@ void libvisio::VSD11Parser::_flushCurrentPath(libwpg::WPGPaintInterface *painter
WPXPropertyList closedPath;
closedPath.insert("libwpg:path-action", "Z");
path.append(closedPath);
- painter->drawPath(path);
}
+ if (path.count())
+ painter->drawPath(path);
}
else
{