]> git.lyx.org Git - lyx.git/commitdiff
fix arc
authorJohn Levon <levon@movementarian.org>
Sat, 14 Sep 2002 04:30:20 +0000 (04:30 +0000)
committerJohn Levon <levon@movementarian.org>
Sat, 14 Sep 2002 04:30:20 +0000 (04:30 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5301 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt2/ChangeLog
src/frontends/qt2/QLPainter.C

index 17692d72529b0c50293133de34d15a88b06cc7d7..6f1fe14caf1ae5eb7fadc47f27ddc119dfef16f3 100644 (file)
@@ -1,3 +1,7 @@
+2002-09-14  John Levon  <levon@movementarian.org>
+
+       * QLPainter.C: fix arc
 2002-09-14  John Levon  <levon@movementarian.org>
 
        * ui/QMathDialog.ui:
index 99af13b7a71309223e2712e6a02e45946ec5996f..1d170359e574fe784604c3f21ae6f88662235db4 100644 (file)
@@ -181,8 +181,11 @@ Painter & QLPainter::arc(int x, int y,
        unsigned int w, unsigned int h,
        int a1, int a2, LColor::color col)
 {
-       // FIXME
-       setPen(col).drawArc(x, y, w, h, a1, a2);
+       lyxerr[Debug::GUI] << "arc: " << x<<","<<y
+               << " " << w<<","<<h << ", angles "
+               << a1 << " - " << a2 << endl;
+       // LyX usings 1/64ths degree, Qt usings 1/16th 
+       setPen(col).drawArc(x, y, w, h, a1 / 4, a2 / 4);
         return *this;
 }