// Instrumentation for testing row cache (see also
// 12 lines lower):
if (lyxerr.debugging(Debug::PAINTING)
- && (row.selection() || pi.full_repaint || row_has_changed)) {
- string const foreword = text_->isMainText() ?
- "main text redraw " : "inset text redraw: ";
- LYXERR(Debug::PAINTING, foreword << "pit=" << pit << " row=" << i
+ && (row.selection() || pi.full_repaint || row_has_changed)) {
+ string const foreword = text_->isMainText() ? "main text redraw "
+ : "inset text redraw: ";
+ LYXERR0(foreword << "pit=" << pit << " row=" << i
<< " row_selection=" << row.selection()
<< " full_repaint=" << pi.full_repaint
<< " row_has_changed=" << row_has_changed
d->showCaret();
- //we're not supposed to cache this value.
- int const time = QApplication::cursorFlashTime() / 2;
- if (time <= 0)
- return;
- d->caret_timeout_.setInterval(time);
- d->caret_timeout_.start();
+ // Avoid blinking when debugging PAINTING, since it creates too much noise
+ if (!lyxerr.debugging(Debug::PAINTING)) {
+ // we are not supposed to cache this value.
+ int const time = QApplication::cursorFlashTime() / 2;
+ if (time <= 0)
+ return;
+ d->caret_timeout_.setInterval(time);
+ d->caret_timeout_.start();
+ }
}