]> git.lyx.org Git - features.git/blobdiff - src/mathed/MathData.cpp
lib/lyx2lyx/lyx_1_5.py: fix revert of listings insets
[features.git] / src / mathed / MathData.cpp
index a911cc839aec0a2da88fa620828ce2278e240140..8e1deaba17cbf39dd123db07cb70cead6290b5d8 100644 (file)
@@ -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();
        }
 }