From 4bf9542812ab3eaef0f80bca089bb8f064d5e6f2 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Mon, 22 Jul 2002 22:00:49 +0000 Subject: [PATCH] fix display of rotated math decorations git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4754 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/ChangeLog | 25 ++++++++++++++++--------- src/mathed/math_support.C | 8 ++++---- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index f81f935616..3561ef3dc4 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -1,9 +1,14 @@ +2002-07-22 Jean-Marc Lasgouttes + + * math_support.C (mathed_draw_deco): fix rounding bug for rotated + decorations + 2002-07-17 Angus Leeming * 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 @@ -12,7 +17,8 @@ 2002-07-12 Angus Leeming - * 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 @@ -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. @@ -251,14 +257,15 @@ 2002-02-18 Angus Leeming - * 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 * 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 diff --git a/src/mathed/math_support.C b/src/mathed/math_support.C index 9c99a49b0d..23ffb03cb3 100644 --- a/src/mathed/math_support.C +++ b/src/mathed/math_support.C @@ -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); -- 2.39.5