X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Farc.cpp;h=6391eaecd0d813cfe14928996025081a9b28ae37;hb=f507d97c1b1118834a70332f5f79d8479a6964c0;hp=f5078694d9a27a425b93ab98aca044997cf4248d;hpb=84afe881653a02a16b19d4da37435b8701b1a826;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)