mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 06:15:16 +00:00
- 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:
parent
eab07b8e99
commit
977b8d094a
@ -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()) {
|
||||
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
|
||||
@ -258,3 +260,4 @@ int QLPainter::text(int x, int y, char_type const * s, size_t ls,
|
||||
|
||||
} // namespace frontend
|
||||
} // namespace lyx
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user