On Wed, Jul 11, 2007 at 02:02:47PM +0200, Nicolás wrote:
> If I write \overset{def}{=} I get the preview shown in the attached
> picture, that is 'def' does not appear above '=', but they both overlap.
Right.
Patch attached.
Ok to commit?
Andre'
Index: InsetMathOverset.cpp
===================================================================
--- InsetMathOverset.cpp (revision 19004)
+++ InsetMathOverset.cpp (working copy)
@@ -49,7 +49,7 @@
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);