From 977b8d094a23bd36c6cd4073b44fa3c1038ec276 Mon Sep 17 00:00:00 2001 From: Asger Ottar Alstrup Date: Tue, 7 Nov 2006 22:17:12 +0000 Subject: [PATCH] - 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 --- src/frontends/qt4/QLPainter.C | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 + -- 2.39.2