]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.cpp
HTML for comments and colors.
[lyx.git] / src / Buffer.cpp
index 83f8cda7566e8ea22003d62ca6a33b255625817d..1a47fdf5bded72eaab8c0524a35b35b7518cd508 100644 (file)
@@ -126,7 +126,7 @@ namespace {
 
 // Do not remove the comment below, so we get merge conflict in
 // independent branches. Instead add your own.
-int const LYX_FORMAT = 380; // vfr: introduction of insetpreview
+int const LYX_FORMAT = 381; // vfr: new parameters for xymatrix
 
 typedef map<string, bool> DepClean;
 typedef map<docstring, pair<InsetLabel const *, Buffer::References> > RefCache;
@@ -3928,6 +3928,9 @@ bool Buffer::reload()
                message(bformat(_("Could not reload document %1$s."), disp_fn));
        }       
        setBusy(false);
+       thePreviews().removeLoader(*this);
+       if (graphics::Previews::status() != LyXRC::PREVIEW_OFF)
+               thePreviews().generateBufferPreviews(*this);
        errors("Parse");
        return success;
 }