X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathOverset.cpp;h=b112a56746b0549c5ec0d46be810b4afa9fefb89;hb=1007714d2ec380d935d59092013ea88373bfb1df;hp=9d241723a5da3d1c03068e52eaec0eebffce01ed;hpb=42123ab8a71080b6d15fca4e0c43ae76abf00a1e;p=lyx.git diff --git a/src/mathed/InsetMathOverset.cpp b/src/mathed/InsetMathOverset.cpp index 9d241723a5..b112a56746 100644 --- a/src/mathed/InsetMathOverset.cpp +++ b/src/mathed/InsetMathOverset.cpp @@ -11,7 +11,7 @@ #include #include "InsetMathOverset.h" -#include "MathArray.h" +#include "MathData.h" #include "MathStream.h" #include "Cursor.h" @@ -24,9 +24,9 @@ using std::max; using std::auto_ptr; -auto_ptr InsetMathOverset::doClone() const +auto_ptr InsetMathOverset::doClone() const { - return auto_ptr(new InsetMathOverset(*this)); + return auto_ptr(new InsetMathOverset(*this)); } @@ -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);