InsetText const * const in = inset->asTextInset();
// non-wide insets are painted completely. Recursive
bool tmp = refreshInside;
- if (!in || !in->Wide()) {
+ if (!in || !in->wide()) {
refreshInside = true;
- lyxerr[Debug::PAINTING] << endl << "Paint inset fully" << endl;
+ if (lyxerr.debugging(Debug::PAINTING)) {
+ lyxerr << endl << "Paint inset fully" << endl;
+ }
}
if (refreshInside)
inset->drawSelection(pi, int(x_), yo_);
// Instrumentation for testing row cache (see also
// 12 lines lower):
- if (text.isMainText(*pi.base.bv->buffer()))
- lyxerr[Debug::PAINTING] << "#";
- else
- lyxerr[Debug::PAINTING] << "[" <<
- repaintAll << row_has_changed <<
- cursor_on_row << "]";
+ if (lyxerr.debugging(Debug::PAINTING)) {
+ if (text.isMainText(*pi.base.bv->buffer()))
+ lyxerr[Debug::PAINTING] << "#";
+ else
+ lyxerr[Debug::PAINTING] << "[" <<
+ repaintAll << row_has_changed <<
+ cursor_on_row << "]";
+ }
rp.paintAppendix();
rp.paintDepthBar();
rp.paintChangeBar();
// Re-enable screen drawing for future use of the painter.
pi.pain.setDrawingEnabled(true);
- lyxerr[Debug::PAINTING] << "." << endl;
+ if (lyxerr.debugging(Debug::PAINTING)) {
+ lyxerr[Debug::PAINTING] << "." << endl;
+ }
}
} // namespace anon