X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Frowpainter.C;h=fdb3450e6407679b09c51d90fc9ce9b2853d8b10;hb=35204f8f33d7400a5fefeffea533fb4cb4097211;hp=6d3707c398d30b1eed3f72e81a9c2e2b6b13cc47;hpb=03d9514bd71dbc8b35c61e97de78ccee29799da0;p=lyx.git diff --git a/src/rowpainter.C b/src/rowpainter.C index 6d3707c398..fdb3450e64 100644 --- a/src/rowpainter.C +++ b/src/rowpainter.C @@ -180,9 +180,11 @@ void RowPainter::paintInset(pos_type const pos, LyXFont const & font) 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_); @@ -921,12 +923,14 @@ void paintPar // 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(); @@ -943,7 +947,9 @@ void paintPar // 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