From: Asger Ottar Alstrup Date: Tue, 7 Nov 2006 22:17:12 +0000 (+0000) Subject: - Get rid of manifestly expensive debugging output in the most critical path in LyX X-Git-Tag: 1.6.10~11990 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=977b8d094a23bd36c6cd4073b44fa3c1038ec276;p=features.git - 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 --- diff --git a/src/frontends/qt4/QLPainter.C b/src/frontends/qt4/QLPainter.C index df9b279a48..d16525fc65 100644 --- a/src/frontends/qt4/QLPainter.C +++ b/src/frontends/qt4/QLPainter.C @@ -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 +