]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/formula.C
rename commandtags.h to lfuns.h and renumber/cleanup. Rebuild the tree !
[lyx.git] / src / mathed / formula.C
index 3ce28a819eadc5e9c9e013924b4fe37d2d8b08aa..15d10238f51d9c0bd9e7a831979806ac2bc973e9 100644 (file)
@@ -194,11 +194,11 @@ void InsetFormula::read(Buffer const *, LyXLex & lex)
 
 
 void InsetFormula::draw(BufferView * bv, LyXFont const & font,
-                       int y, float & xx, bool) const
+                       int y, float & xx) const
 {
+       cache(bv);
        // This initiates the loading of the preview, so should come
        // before the metrics are computed.
-       preview_->setView(bv);
        bool const use_preview = preview_->previewReady();
 
        int const x = int(xx);