// We need to draw the text as LTR as we use our own bidi code.
setLayoutDirection(Qt::LeftToRight);
if (isDrawingEnabled()) {
- lyxerr[Debug::PAINTING] << "draw " << std::string(str.toUtf8())
- << " at " << x << "," << y << std::endl;
+ if (lyxerr.debugging(Debug::PAINTING)) {
+ lyxerr[Debug::PAINTING] << "draw " << std::string(str.toUtf8())
+ << " at " << x << "," << y << std::endl;
+ }
drawText(x, y, str);
}
// Here we use the font width cache instead of
} // namespace frontend
} // namespace lyx
+