]> git.lyx.org Git - features.git/commitdiff
fix display of rotated math decorations
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 22 Jul 2002 22:00:49 +0000 (22:00 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 22 Jul 2002 22:00:49 +0000 (22:00 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4754 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/ChangeLog
src/mathed/math_support.C

index f81f9356166f6fa530297219f5315267005b04bb..3561ef3dc4093e5df09c6911d435a93e5ba9a888 100644 (file)
@@ -1,9 +1,14 @@
+2002-07-22  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
+
+       * math_support.C (mathed_draw_deco): fix rounding bug for rotated
+       decorations
+
 2002-07-17  Angus Leeming  <leeming@lyx.org>
 
        * math_parboxinset.C: add using std::vector directive.
 
-       * formula.C (PreviewImpl's generate): bind to the PreviewLoader through
-       a method rather than to the signal directly.
+       * formula.C (PreviewImpl's generate): bind to the PreviewLoader
+       through a method rather than to the signal directly.
 
 2002-07-16  Angus Leeming  <leeming@lyx.org>
 
@@ -12,7 +17,8 @@
 
 2002-07-12  Angus Leeming  <leeming@lyx.org>
 
-       * formula.C: use the new smart loading capabilities of the image loader.
+       * formula.C: use the new smart loading capabilities of the image
+       loader. 
 
 2002-07-14  John Levon  <moz@compsoc.man.ac.uk>
 
@@ -35,8 +41,8 @@
 
        * formula.[Ch] (generatePreview): instantiate new virtual method.
        Strip out the preliminary preview code and replace with code that
-       makes full use of the graphics/Preview* files. Hide all the shenanigans
-       behind a PreviewImpl firewall.
+       makes full use of the graphics/Preview* files. Hide all the
+       shenanigans behind a PreviewImpl firewall.
 
        * math_nestinset.C (notifyCursorLeaves): update the preview using the
        new graphics/Preview* code.
 
 2002-02-18  Angus Leeming  <a.leeming@ic.ac.uk>
 
-       * formula.C Changes due to the renaming of support/syscall.[Ch]
-       as support/systemcall.[Ch] and of class Systemcalls as class SystemCall.
+       * formula.C Changes due to the renaming of support/syscall.[Ch] as
+       support/systemcall.[Ch] and of class Systemcalls as class
+       SystemCall.
 
 2002-02-16  Angus Leeming  <a.leeming@ic.ac.uk>
 
        * formula.C: change Systemcalls::System to Systemcalls::Wait and
-       No change of functionality, just reflects the stripped down Systemcalls
-       class.
+       No change of functionality, just reflects the stripped down
+       Systemcalls class.
 
 2002-02-08  André Pönitz <poenitz@gmx.net>
 
index 9c99a49b0d63810f7c189f0b4121b5721555742e..23ffb03cb39fce373e849e3f72c86f33db081bf9 100644 (file)
@@ -439,8 +439,8 @@ void mathed_draw_deco(MathPainterInfo & pi, int x, int y, int w, int h,
                                mt.transform(xx, yy);
                        mt.transform(x2, y2);
                        pi.pain.line(
-                               x + int(xx + 0.5), y + int(yy + 0.5),
-                               x + int(x2 + 0.5), y + int(y2 + 0.5),
+                               int(x + xx + 0.5), int(y + yy + 0.5),
+                               int(x + x2 + 0.5), int(y + y2 + 0.5),
                                LColor::math);
                }       else {
                        int xp[32];
@@ -454,8 +454,8 @@ void mathed_draw_deco(MathPainterInfo & pi, int x, int y, int w, int h,
                                        sqmt.transform(xx, yy);
                                else
                                        mt.transform(xx, yy);
-                               xp[j] = x + int(xx + 0.5);
-                               yp[j] = y + int(yy + 0.5);
+                               xp[j] = int(x + xx + 0.5);
+                               yp[j] = int(y + yy + 0.5);
                                //  lyxerr << "P[" << j " " << xx << " " << yy << " " << x << " " << y << "]";
                        }
                        pi.pain.lines(xp, yp, n, LColor::math);