From b6b263b9fc4cd70849c60de9f8849c346b3c12ab Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Mon, 12 Oct 2015 08:00:24 +0200 Subject: [PATCH] Correct early return position for if use_pixmap_cache_ check --- src/frontends/qt4/GuiPainter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/frontends/qt4/GuiPainter.cpp b/src/frontends/qt4/GuiPainter.cpp index 2ecd3acd66..b2ccbfc41c 100644 --- a/src/frontends/qt4/GuiPainter.cpp +++ b/src/frontends/qt4/GuiPainter.cpp @@ -377,9 +377,8 @@ int GuiPainter::text(int x, int y, docstring const & s, // Draw the new cached pixmap. drawPixmap(x + lb, y - mA, pm); - - return textwidth; } + return textwidth; } // don't use the pixmap cache, -- 2.39.2