]> Shamusworld >> Repos - architektonas/blobdiff - src/arc.cpp
Lines respond to mouse movement, added Text rendering.
[architektonas] / src / arc.cpp
index f5078694d9a27a425b93ab98aca044997cf4248d..6391eaecd0d813cfe14928996025081a9b28ae37 100644 (file)
@@ -368,6 +368,7 @@ point (to get the correct position).
        QPointF p2(cos(end), sin(end));
        QRectF bounds(p1, p2);
 
+#if 0
        // Swap X/Y coordinates if they're backwards...
        if (bounds.left() > bounds.right())
        {
@@ -382,6 +383,9 @@ point (to get the correct position).
                bounds.setBottom(bounds.top());
                bounds.setTop(temp);
        }
+#else
+       bounds = bounds.normalized();
+#endif
 
        // If the end of the arc is before the beginning, add 360 degrees to it
        if (end < start)