]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiPainter.cpp
Squash warnings reported by gcc 4.9
[features.git] / src / frontends / qt4 / GuiPainter.cpp
index 5718fbb60aa3a11881b6d457ae8021cf9649b60b..de1ca71d2b53427cc8893190dd3860cc2d7bc6f0 100644 (file)
@@ -380,7 +380,8 @@ int GuiPainter::text(int x, int y, docstring const & s,
                int const mD = fm.maxDescent();
                int const h = mA + mD;
                if (w > 0 && h > 0) {
-                       pm = QPixmap(pixelRatio() * w , pixelRatio() * h);
+                       pm = QPixmap(static_cast<int>(pixelRatio() * w),
+                                                static_cast<int>(pixelRatio() * h));
 #if QT_VERSION >= 0x050000
                        pm.setDevicePixelRatio(pixelRatio());
 #endif