]> git.lyx.org Git - lyx.git/commitdiff
Smash compiler warning.
authorEnrico Forestieri <forenr@lyx.org>
Mon, 28 Mar 2011 05:49:35 +0000 (05:49 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Mon, 28 Mar 2011 05:49:35 +0000 (05:49 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38089 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index 0579c32ba7fb427fffbbf52decca8d35409e1d35..8f6f31e60f48918343ea6c7ceb0b2f9688583650 100644 (file)
@@ -628,9 +628,9 @@ bool GuiView::restoreLayout()
        //code below is skipped when when ~/.config/LyX is (re)created
        QSize icon_size = settings.value(icon_key).toSize();
        // Check whether session size changed.
-       if (icon_size.width() != d.smallIconSize &&
-           icon_size.width() != d.normalIconSize &&
-           icon_size.width() != d.bigIconSize) {
+       if (icon_size.width() != int(d.smallIconSize) &&
+           icon_size.width() != int(d.normalIconSize) &&
+           icon_size.width() != int(d.bigIconSize)) {
                icon_size.setWidth(d.normalIconSize);
                icon_size.setHeight(d.normalIconSize);
        }