Fix bug #7285 in branch, too.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37553 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-02-07 23:39:02 +00:00
parent 202d7e34ae
commit e851168cb7
2 changed files with 2 additions and 2 deletions

View File

@ -76,9 +76,8 @@ bool GuiIdListModel::insertRows(int row, int count,
if (!rowIsValid(row))
return false;
vector<OurData>::iterator it = userData_.begin() + row;
OurData const v;
beginInsertRows(QModelIndex(), row, row + count - 1);
userData_.insert(it, count, v);
userData_.insert(it, count, OurData());
endInsertRows();
return true;
}

View File

@ -15,6 +15,7 @@
#include "support/strfwd.h"
#include <cstddef>
#include <vector>