From: Stefan Schimanski Date: Mon, 3 Nov 2008 07:40:18 +0000 (+0000) Subject: * fix for r27091: draw the newly created pixmap. The reordering of the code has remov... X-Git-Tag: 1.6.10~2749 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=4040382f46aeb6c216b0934ba49fc85b3c10c810;p=lyx.git * fix for r27091: draw the newly created pixmap. The reordering of the code has removed this case. So much about trivial program transformation. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27227 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiPainter.cpp b/src/frontends/qt4/GuiPainter.cpp index bda52f1890..0122475a7f 100644 --- a/src/frontends/qt4/GuiPainter.cpp +++ b/src/frontends/qt4/GuiPainter.cpp @@ -405,6 +405,10 @@ int GuiPainter::text(int x, int y, docstring const & s, //LYXERR(Debug::PAINTING, "h=" << h << " mA=" << mA << " mD=" << mD // << " w=" << w << " lb=" << lb << " tw=" << textwidth // << " rb=" << rb); + + // Draw the new cached pixmap. + drawPixmap(x + lb, y - mA, pm); + return textwidth; } }