]> git.lyx.org Git - lyx.git/blobdiff - src/insets/RenderPreview.cpp
requires is a keyword in C++2a
[lyx.git] / src / insets / RenderPreview.cpp
index d626b3c50c6fdc78885ef1b2d46f05c58df3ba0a..0b17d2f83c5ff40d9d938ba66642d01df4c4d87a 100644 (file)
@@ -166,7 +166,7 @@ void RenderPreview::draw(PainterInfo & pi, int x, int y) const
                pi.pain.image(x, y - dim_.asc, dim_.wid, dim_.height(),
                              *image);
        } else {
-               int const offset = Inset::TEXT_TO_INSET_OFFSET;
+               int const offset = Inset::textOffset(pi.base.bv);
 
                pi.pain.rectangle(x + offset,
                                  y - dim_.asc,