]> git.lyx.org Git - features.git/commitdiff
Don't try and generate the previews from draw.
authorAngus Leeming <leeming@lyx.org>
Fri, 10 Oct 2003 14:20:59 +0000 (14:20 +0000)
committerAngus Leeming <leeming@lyx.org>
Fri, 10 Oct 2003 14:20:59 +0000 (14:20 +0000)
insetUnlock is already doing a fine job...

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7892 a592a061-630c-0410-9148-cb99ea01b6c8

src/graphics/PreviewedInset.C
src/mathed/ChangeLog
src/mathed/formula.C

index 8056a1b82c12ea25d8bdb9687ad5a9bb641d7af9..015cb5c1ab0c6830e268b42bc8ddea887fdb3955 100644 (file)
@@ -59,6 +59,7 @@ void PreviewedInset::addPreview(graphics::PreviewLoader & ploader)
                return;
 
        snippet_ = support::trim(latexString(ploader.buffer()));
+       pimage_ = 0;
        if (snippet_.empty())
                return;
 
index 7daeff64dc1791f64d4338d6637a9617543880dc..f14e2f8337b65aaf029f6abca3fa19714e377182 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-10  Angus Leeming  <leeming@lyx.org>
+
+       * formula.C (draw): don't try and generate the previews from draw.
+       insetUnlock is already doing a fine job...
+
 2003-10-09  Angus Leeming  <leeming@lyx.org>
 
        * formula.C (metrics, draw): no longer need to pass a Buffer arg
index 84ec914000bbf3bc5bae7bb306ed6f12436cc7fe..85617a78e3d843e63952e7ee1ab5c8280034dc9d 100644 (file)
@@ -200,12 +200,6 @@ void InsetFormula::draw(PainterInfo & pi, int x, int y) const
        bool const editing_inset = mathcursor && mathcursor->formula() == this;
        bool const use_preview = !editing_inset && preview_->previewReady();
 
-       if (!editing_inset && bv) {
-               Buffer const * buffer_ptr = bv->buffer();
-               if (buffer_ptr)
-                       preview_->generatePreview(*buffer_ptr);
-       }
-
        int const w = dim_.wid;
        int const d = dim_.des;
        int const a = dim_.asc;