]> git.lyx.org Git - features.git/commitdiff
Fix some warnings
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 7 Jan 2015 20:27:53 +0000 (21:27 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 7 Jan 2015 20:27:53 +0000 (21:27 +0100)
src/TextMetrics.cpp

index 874cb17607f716e9551e53720237300f57c1f699..d3523ae47e87d67c7d8b9b92342355e773fe2ef3 100644 (file)
@@ -619,16 +619,16 @@ void TextMetrics::computeRowMetrics(pit_type const pit,
                                row.dimension().wid = width;
                        } else if (is_rtl) {
                                row.dimension().wid = width;
-                               row.left_margin += w;
+                               row.left_margin += int(w);
                        }
                        break;
                }
                case LYX_ALIGN_RIGHT:
-                       row.left_margin += w;
+                       row.left_margin += int(w);
                        break;
                case LYX_ALIGN_CENTER:
                        row.dimension().wid = width - int(w / 2);
-                       row.left_margin += w / 2;
+                       row.left_margin += int(w / 2);
                        break;
                case LYX_ALIGN_LEFT:
                case LYX_ALIGN_NONE: