From cf2656e0260f2f687e657b174aa7c07586767808 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sun, 13 Jan 2008 10:48:10 +0000 Subject: [PATCH] fix warning. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22536 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiIdListModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiIdListModel.cpp b/src/frontends/qt4/GuiIdListModel.cpp index ceb88baaa5..2e169b50ce 100644 --- a/src/frontends/qt4/GuiIdListModel.cpp +++ b/src/frontends/qt4/GuiIdListModel.cpp @@ -71,7 +71,7 @@ bool GuiIdListModel::insertRows(int row, int count, bool GuiIdListModel::removeRows(int row, int count, QModelIndex const & /*parent*/) { - if (!rowIsValid(row) || row + count > userData_.size() || + if (!rowIsValid(row) || row + count > int(userData_.size()) || count < 0) return false; if (count == 0)