]> git.lyx.org Git - lyx.git/blobdiff - src/MetricsInfo.cpp
Amend 207eaeee9071cb
[lyx.git] / src / MetricsInfo.cpp
index 844c1c13f392ca51ab5fc5306453f95dd09e2313..3fa8973e01279616a70847323f4617cab75149f3 100644 (file)
@@ -193,9 +193,11 @@ ColorCode PainterInfo::backgroundColor(Inset const * inset, bool sel) const
 
        // special handling for inset background
        if (inset != nullptr) {
-               if (pain.develMode() && !inset->isBufferValid())
+               if (pain.develMode() && !inset->isBufferValid()) {
+                       LYXERR0("Invalid or no buffer set in " << insetName(inset->lyxCode()));
                        // This inset is in error
                        return Color_error;
+               }
 
                ColorCode const color_bg = inset->backgroundColor(*this);
                if (color_bg != Color_none)