X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FMathMacro.cpp;h=6a5c904df7161855c8c9286df8e7e95142355870;hb=02e82157ec583c3900e359de86be79fac6512387;hp=104d1199139746806918d9939b98013f348a39e5;hpb=2acc4fc54c178744467b89b469f10bda90bb0310;p=lyx.git diff --git a/src/mathed/MathMacro.cpp b/src/mathed/MathMacro.cpp index 104d119913..6a5c904df7 100644 --- a/src/mathed/MathMacro.cpp +++ b/src/mathed/MathMacro.cpp @@ -116,6 +116,16 @@ public: // This should never be invoked, since ArgumentProxy insets are linearized LATTEST(false); } + /// + int kerning(BufferView const * bv) const + { + return displayCell(bv).kerning(bv); + } + /// + void draw(PainterInfo &, int, int) const { + // This should never be invoked, since ArgumentProxy insets are linearized + LATTEST(false); + } // write(), normalize(), infoize() and infoize2() are not needed since // MathMacro uses the definition and not the expanded cells. /// @@ -130,18 +140,6 @@ public: void htmlize(HtmlStream & ms) const { ms << mathMacro_->cell(idx_); } /// void octave(OctaveStream & os) const { os << mathMacro_->cell(idx_); } - /// - void draw(PainterInfo &, int, int) const { - // This should never be invoked, since ArgumentProxy insets are linearized - LATTEST(false); - } - /// - size_t idx() const { return idx_; } - /// - int kerning(BufferView const * bv) const - { - return displayCell(bv).kerning(bv); - } private: /// @@ -626,7 +624,6 @@ void MathMacro::draw(PainterInfo & pi, int x, int y) const { Dimension const dim = dimension(*pi.base.bv); - setPosCache(pi, x, y); int expx = x; int expy = y;