]> git.lyx.org Git - lyx.git/blobdiff - src/insets/RenderPreview.cpp
Change tracking cue for InsetCaption
[lyx.git] / src / insets / RenderPreview.cpp
index b05dca65b45107576de12eb97e1df7bda074d993..e985d290a27391427a44df676147d0f8b4c56b95 100644 (file)
@@ -104,6 +104,9 @@ docstring const statusMessage(BufferView const * bv, string const & snippet)
 
        Buffer const & buffer = bv->buffer();
        graphics::PreviewLoader const * loader = buffer.loader();
+       // please coverity (probably worth the check anyway)
+       if (!loader)
+               return docstring();
        graphics::PreviewLoader::Status const status = loader->status(snippet);
 
        docstring message;
@@ -190,6 +193,8 @@ void RenderPreview::draw(PainterInfo & pi, int x, int y) const
                             y - theFontMetrics(font).maxAscent() - 4,
                             stat, font);
        }
+       pi.change_.paintCue(pi, x, y - dim_.asc,
+                           x + dim_.width(), y - dim_.asc + dim_.height());
 }