- Get rid of manifestly expensive debugging output in the most critical path in LyX

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15796 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Asger Ottar Alstrup 2006-11-07 22:17:12 +00:00
parent eab07b8e99
commit 977b8d094a

View File

@ -236,8 +236,10 @@ int QLPainter::text(int x, int y, char_type const * s, size_t ls,
// We need to draw the text as LTR as we use our own bidi code.
setLayoutDirection(Qt::LeftToRight);
if (isDrawingEnabled()) {
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
@ -258,3 +260,4 @@ int QLPainter::text(int x, int y, char_type const * s, size_t ls,
} // namespace frontend
} // namespace lyx