From f95696320b54b7584856a5639523f7d006ba71ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20St=C3=B6hr?= Date: Tue, 30 Oct 2007 00:52:55 +0000 Subject: [PATCH] InsetMathBinom.cpp: fix bug 4308 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21281 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/InsetMathBinom.cpp | 4 ++-- status.15x | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mathed/InsetMathBinom.cpp b/src/mathed/InsetMathBinom.cpp index 7d0aa7b27f..b2c45b45f5 100644 --- a/src/mathed/InsetMathBinom.cpp +++ b/src/mathed/InsetMathBinom.cpp @@ -47,7 +47,7 @@ int InsetMathBinom::dw() const bool InsetMathBinom::metrics(MetricsInfo & mi, Dimension & dim) const { - ScriptChanger dummy(mi.base); + FracChanger dummy(mi.base); cell(0).metrics(mi); cell(1).metrics(mi); dim.asc = cell(0).height() + 4 + 5; @@ -63,7 +63,7 @@ bool InsetMathBinom::metrics(MetricsInfo & mi, Dimension & dim) const void InsetMathBinom::draw(PainterInfo & pi, int x, int y) const { int m = x + dim_.width() / 2; - ScriptChanger dummy(pi.base); + FracChanger dummy(pi.base); cell(0).draw(pi, m - cell(0).width() / 2, y - cell(0).descent() - 3 - 5); cell(1).draw(pi, m - cell(1).width() / 2, y + cell(1).ascent() + 3 - 5); mathed_draw_deco(pi, x, y - dim_.ascent(), dw(), dim_.height(), from_ascii("(")); diff --git a/status.15x b/status.15x index 4c067e36a9..30aa8a0873 100644 --- a/status.15x +++ b/status.15x @@ -94,6 +94,8 @@ What's new - Fix bug that external modifications of e.g. image files were not taken into account by LyX (bug 3172). +- Fix math display problem with binoms (bug 4308). + * DOCUMENTATION