[dia] wmf: bézier rendering was using the wrong offs et



commit 8ce3f51aea6781b4a0ac0d1e5a81198beb323d89
Author: Hans Breuer <hans breuer org>
Date:   Sat Apr 19 20:29:25 2014 +0200

    wmf: bézier rendering was using the wrong offset

 plug-ins/wmf/wmf.cpp |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/plug-ins/wmf/wmf.cpp b/plug-ins/wmf/wmf.cpp
index ff752a9..91a618c 100644
--- a/plug-ins/wmf/wmf.cpp
+++ b/plug-ins/wmf/wmf.cpp
@@ -904,17 +904,17 @@ _bezier (DiaRenderer *self,
     for (int i = 0; i < numpoints; ++i) {
         switch (points[i].type) {
        case BezPoint::BEZ_MOVE_TO :
-           W32::MoveToEx (renderer->hFileDC, SCX(points[i].p1.x), SCX(points[i].p1.y), NULL);
+           W32::MoveToEx (renderer->hFileDC, SCX(points[i].p1.x), SCY(points[i].p1.y), NULL);
            break;
        case BezPoint::BEZ_LINE_TO :
-           W32::LineTo (renderer->hFileDC, SCX(points[i].p1.x), SCX(points[i].p1.y));
+           W32::LineTo (renderer->hFileDC, SCX(points[i].p1.x), SCY(points[i].p1.y));
            break;
        case BezPoint::BEZ_CURVE_TO :
          {
            W32::POINT pts[3] = {
-             {SCX(points[i].p1.x), SCX(points[i].p1.y)},
-             {SCX(points[i].p2.x), SCX(points[i].p2.y)},
-             {SCX(points[i].p3.x), SCX(points[i].p3.y)}
+             {SCX(points[i].p1.x), SCY(points[i].p1.y)},
+             {SCX(points[i].p2.x), SCY(points[i].p2.y)},
+             {SCX(points[i].p3.x), SCY(points[i].p3.y)}
            };
            W32::PolyBezierTo (renderer->hFileDC, pts, 3);
          }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]