]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiPainter.cpp
Correct early return position for if use_pixmap_cache_ check
[lyx.git] / 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,