]> git.lyx.org Git - lyx.git/commitdiff
Correct early return position for if use_pixmap_cache_ check
authorStephan Witt <switt@lyx.org>
Mon, 12 Oct 2015 06:00:24 +0000 (08:00 +0200)
committerStephan Witt <switt@lyx.org>
Mon, 12 Oct 2015 06:00:24 +0000 (08:00 +0200)
src/frontends/qt4/GuiPainter.cpp

index 2ecd3acd66d1020455496d8391404fdfa6a2ed56..b2ccbfc41c60664f683635159eec21f8e7519d3b 100644 (file)
@@ -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,