mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
2007-07-12 André Pönitz <poenitz@lyx.org>
* InsetMathOverset.cpp (draw): fix drawing when the first argument has a non-zero descent. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19060 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b995f7715c
commit
0234b98b10
@ -49,7 +49,7 @@ bool InsetMathOverset::metrics(MetricsInfo & mi, Dimension & dim) const
|
||||
void InsetMathOverset::draw(PainterInfo & pi, int x, int y) const
|
||||
{
|
||||
int m = x + width() / 2;
|
||||
int yo = y - cell(1).ascent() + cell(0).descent() - 1;
|
||||
int yo = y - cell(1).ascent() - cell(0).descent() - 1;
|
||||
cell(1).draw(pi, m - cell(1).width() / 2, y);
|
||||
FracChanger dummy(pi.base);
|
||||
cell(0).draw(pi, m - cell(0).width() / 2, yo);
|
||||
|
Loading…
Reference in New Issue
Block a user