MetricsInfo::MetricsInfo(BufferView * bv, FontInfo font, int textwidth,
MacroContext const & mc, bool vm, bool tight)
- : base(bv, font, textwidth), macrocontext(mc), vmode(vm), tight_insets(tight)
+ : base(bv, font, textwidth), macrocontext(mc), vmode(vm), tight_insets(tight),
+ extrawidth(0)
{}
// 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)