]> git.lyx.org Git - features.git/commitdiff
fix warning.
authorAbdelrazak Younes <younes@lyx.org>
Tue, 25 Dec 2007 18:49:55 +0000 (18:49 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 25 Dec 2007 18:49:55 +0000 (18:49 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22297 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetSpace.cpp

index 11f33617897d604e1459b547806124a682f3571b..2fddd0691927dc81aaa488c395865b4e887c510a 100644 (file)
@@ -69,7 +69,7 @@ void InsetSpace::metrics(MetricsInfo & mi, Dimension & dim) const
                        break;
                case ENSPACE:
                case ENSKIP:
-                       dim.wid = 0.5 * fm.width(char_type('M'));
+                       dim.wid = int(0.5 * fm.width(char_type('M')));
                        break;
        }
        // Cache the inset dimension.