From 4040382f46aeb6c216b0934ba49fc85b3c10c810 Mon Sep 17 00:00:00 2001 From: Stefan Schimanski Date: Mon, 3 Nov 2008 07:40:18 +0000 Subject: [PATCH] * 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 --- src/frontends/qt4/GuiPainter.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; } } -- 2.39.2