diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-11-07 15:52:48 +0100 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-11-07 15:52:48 +0100 |
commit | efa4a2a530699a5b7bd330ee7e1fb4df764358c9 (patch) | |
tree | c5ae2938d2c0dada09a22d4d1787862c365f96a3 | |
parent | 93e2e96b972a220ac20e0c3176d958e0579547da (diff) |
Trying to fix transforms
-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 94f789c..f7b0653 100644 --- a/src/lib/VSDXContentCollector.cpp +++ b/src/lib/VSDXContentCollector.cpp @@ -445,13 +445,13 @@ void libvisio::VSDXContentCollector::_lineProperties(double strokeWidth, Colour { m_styleProps.insert("draw:marker-start-viewbox", "0 0 20 30"); m_styleProps.insert("draw:marker-start-path", "m10 0-10 30h20z"); - m_styleProps.insert("draw:marker-start-width", 0.118); + m_styleProps.insert("draw:marker-start-width", m_scale*0.118); } else if (endMarker > 0) { m_styleProps.insert("draw:marker-end-viewbox", "0 0 20 30"); m_styleProps.insert("draw:marker-end-path", "m10 0-10 30h20z"); - m_styleProps.insert("draw:marker-end-width", 0.118); + m_styleProps.insert("draw:marker-end-width", m_scale*0.118); } } @@ -1434,9 +1434,9 @@ void libvisio::VSDXContentCollector::applyXForm(double &x, double &y, const XFor x -= xform.pinLocX; y -= xform.pinLocY; if (xform.flipX) - x = xform.width - x - 2.0*xform.pinLocX; + x = -x; if (xform.flipY) - y = xform.height -y - 2.0*xform.pinLocY; + y = -y; if (xform.angle != 0.0) { double tmpX = x*cos(xform.angle) - y*sin(xform.angle); |