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
This commit is contained in:
Uwe Stöhr 2007-10-30 00:52:55 +00:00
parent 3788eb55e4
commit f95696320b
2 changed files with 4 additions and 2 deletions

View File

@ -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("("));

View File

@ -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