diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-11-07 14:24:33 +0100 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-11-07 14:24:33 +0100 |
commit | 791799b02299d2f5399381d85827421cdeecf0f4 (patch) | |
tree | 002a18b0ca64d047a06ead3716cca77dc79ca5e2 | |
parent | ace424035faa2d2db9d966523315dc6da6703701 (diff) |
Always multiply coordinates by m_scale
-rw-r--r-- | src/lib/VSDXContentCollector.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/VSDXContentCollector.cpp b/src/lib/VSDXContentCollector.cpp index 29078ba..94f789c 100644 --- a/src/lib/VSDXContentCollector.cpp +++ b/src/lib/VSDXContentCollector.cpp @@ -1340,8 +1340,8 @@ void libvisio::VSDXContentCollector::collectPolylineTo(unsigned /* id */ , unsig transformPoint(points[i].first, points[i].second); polyline.insert("libwpg:path-action", "L"); - polyline.insert("svg:x", points[i].first); - polyline.insert("svg:y", points[i].second); + polyline.insert("svg:x", m_scale*points[i].first); + polyline.insert("svg:y", m_scale*points[i].second); m_currentGeometry.push_back(polyline); } @@ -1351,8 +1351,8 @@ void libvisio::VSDXContentCollector::collectPolylineTo(unsigned /* id */ , unsig m_y = y; transformPoint(m_x, m_y); polyline.insert("libwpg:path-action", "L"); - polyline.insert("svg:x", m_x); - polyline.insert("svg:y", m_y); + polyline.insert("svg:x", m_scale*m_x); + polyline.insert("svg:y", m_scale*m_y); m_currentGeometry.push_back(polyline); } |