X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathOverset.cpp;h=b112a56746b0549c5ec0d46be810b4afa9fefb89;hb=1007714d2ec380d935d59092013ea88373bfb1df;hp=2157a623684729cb031b82ee306edf38bc29c700;hpb=f497296c30e6da2f97b16da8ad1c9e96feffb16b;p=lyx.git diff --git a/src/mathed/InsetMathOverset.cpp b/src/mathed/InsetMathOverset.cpp index 2157a62368..b112a56746 100644 --- a/src/mathed/InsetMathOverset.cpp +++ b/src/mathed/InsetMathOverset.cpp @@ -14,7 +14,7 @@ #include "MathData.h" #include "MathStream.h" -#include "cursor.h" +#include "Cursor.h" #include "LaTeXFeatures.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); @@ -57,7 +57,7 @@ void InsetMathOverset::draw(PainterInfo & pi, int x, int y) const } -bool InsetMathOverset::idxFirst(LCursor & cur) const +bool InsetMathOverset::idxFirst(Cursor & cur) const { cur.idx() = 1; cur.pos() = 0; @@ -65,7 +65,7 @@ bool InsetMathOverset::idxFirst(LCursor & cur) const } -bool InsetMathOverset::idxLast(LCursor & cur) const +bool InsetMathOverset::idxLast(Cursor & cur) const { cur.idx() = 1; cur.pos() = cur.lastpos();