X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathPhantom.cpp;h=ed9cfd8cc903b270c4c0c4e3eefe4ad61fcec810;hb=d9082639080b9de993742bd352f92e5183058cf5;hp=1ae8eee07b65b2632a9d42526344717cbdfae704;hpb=eadc55b8b38a489202e2e168521578dae119fd59;p=lyx.git diff --git a/src/mathed/InsetMathPhantom.cpp b/src/mathed/InsetMathPhantom.cpp index 1ae8eee07b..ed9cfd8cc9 100644 --- a/src/mathed/InsetMathPhantom.cpp +++ b/src/mathed/InsetMathPhantom.cpp @@ -40,7 +40,6 @@ void InsetMathPhantom::metrics(MetricsInfo & mi, Dimension & dim) const { Changer dummy = mi.base.changeEnsureMath(); cell(0).metrics(mi, dim); - metricsMarkers(mi, dim); } @@ -53,7 +52,7 @@ void InsetMathPhantom::draw(PainterInfo & pi, int x, int y) const ColorCode const origcol = pi.base.font.color(); if (visibleContents()) pi.base.font.setColor(Color_special); - cell(0).draw(pi, x + 1, y); + cell(0).draw(pi, x, y); if (visibleContents()) pi.base.font.setColor(origcol); Dimension const dim = dimension(*pi.base.bv); @@ -247,12 +246,10 @@ void InsetMathPhantom::draw(PainterInfo & pi, int x, int y) const else pi.pain.line(x2, y1, x2, y5, Color_added_space); } - - drawMarkers(pi, x, y); } -void InsetMathPhantom::write(WriteStream & os) const +void InsetMathPhantom::write(TeXMathStream & os) const { MathEnsurer ensurer(os); if (os.fragile()) @@ -381,8 +378,8 @@ void InsetMathPhantom::validate(LaTeXFeatures & features) const } -bool InsetMathPhantom::visibleContents() const -{ +bool InsetMathPhantom::visibleContents() const +{ return kind_ == phantom || kind_ == vphantom || kind_ == hphantom; }