X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Farc.cpp;h=6391eaecd0d813cfe14928996025081a9b28ae37;hb=9426a17d7752f82b27c47f12df0062b882df3077;hp=f5078694d9a27a425b93ab98aca044997cf4248d;hpb=7f3a6b11585376eecd80979ec3da2346c5314d88;p=architektonas diff --git a/src/arc.cpp b/src/arc.cpp index f507869..6391eae 100644 --- a/src/arc.cpp +++ b/src/arc.cpp @@ -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)