]> git.lyx.org Git - lyx.git/blobdiff - src/insets/RenderPreview.cpp
Fix assertion when checking if change in selection
[lyx.git] / src / insets / RenderPreview.cpp
index 64a5eb58adcc4f7194fbb4320fe26dbc100b485d..a2162507f0176e25ff5f209d80d30851598638bf 100644 (file)
@@ -116,7 +116,7 @@ docstring const statusMessage(BufferView const * bv, string const & snippet)
        return message;
 }
 
-} // namespace anon
+} // namespace
 
 
 graphics::PreviewImage const *
@@ -304,6 +304,7 @@ void RenderMonitoredPreview::startMonitoring() const
 {
        if (!monitoring()) {
                monitor_ = FileSystemWatcher::activeMonitor(filename_);
+               // Disconnected at the same time as this is destroyed.
                monitor_->connect([this](bool /* exists */){ changed_(); });
        }
 }