mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 17:20:55 +00:00
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:
parent
3788eb55e4
commit
f95696320b
@ -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("("));
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user