commit b6b263b9fc4cd70849c60de9f8849c346b3c12ab
Author: Stephan Witt <[email protected]>
Date: Mon Oct 12 08:00:24 2015 +0200
Correct early return position for if use_pixmap_cache_ check
diff --git a/src/frontends/qt4/GuiPainter.cpp b/src/frontends/qt4/GuiPainter.cpp
index 2ecd3ac..b2ccbfc 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,