X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FMathData.cpp;h=8e1deaba17cbf39dd123db07cb70cead6290b5d8;hb=a8e9fe82d0461fa821b3ec70c83fe76f02eafcb0;hp=a911cc839aec0a2da88fa620828ce2278e240140;hpb=486ca0c750f4bd465aac2177c24aacf4e90ee6de;p=features.git diff --git a/src/mathed/MathData.cpp b/src/mathed/MathData.cpp index a911cc839a..8e1deaba17 100644 --- a/src/mathed/MathData.cpp +++ b/src/mathed/MathData.cpp @@ -310,6 +310,8 @@ void MathData::draw(PainterInfo & pi, int x, int y) const || x >= bv. workWidth()) return; + + for (size_t i = 0, n = size(); i != n; ++i) { MathAtom const & at = operator[](i); #if 0 @@ -331,7 +333,10 @@ void MathData::draw(PainterInfo & pi, int x, int y) const #endif bv.coordCache().insets().add(at.nucleus(), x, y); at->drawSelection(pi, x, y); + at->setRedrawBackground(false); + lyxerr << "selection draw " << x << " " << y << " " << at->redrawBackground() << std::endl; at->draw(pi, x, y); + //at->setRedrawBackground(true); x += at->width(); } }