]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.cpp
HTML for comments and colors.
[lyx.git] / src / Buffer.cpp
index 7317ac20714feed43ffb18c67819043eea438f78..1a47fdf5bded72eaab8c0524a35b35b7518cd508 100644 (file)
@@ -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;
 }