]> git.lyx.org Git - lyx.git/blobdiff - src/MetricsInfo.cpp
* GuiDocument.cpp: before accessing the buffer() in paramsToDialog(), check
[lyx.git] / src / MetricsInfo.cpp
index 788709cd49cccc413d88582dc21c44256dbc63dd..ba5748d32da5cd7f33aefdd5983f1e809c7754e3 100644 (file)
@@ -86,7 +86,7 @@ void PainterInfo::draw(int x, int y, docstring const & str)
 
 ColorCode PainterInfo::backgroundColor(Inset const * inset, bool sel) const
 {
-       ColorCode const color_bg = inset->backgroundColor();
+       ColorCode const color_bg = inset->backgroundColor(*this);
 
        if (selected && sel)
                // This inset is in a selection