fix warning.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22536 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-01-13 10:48:10 +00:00
parent 0ea17620dc
commit cf2656e026

View File

@ -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)