Skip to content

Commit

Permalink
Fix for invalid index
Browse files Browse the repository at this point in the history
  • Loading branch information
MattClarkson committed Nov 29, 2011
1 parent 49f96e8 commit f12958e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CoreUI/Qmitk/QmitkDataStorageTreeModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ bool QmitkDataStorageTreeModel::dropMimeData(const QMimeData *data,
}

// Now insert items again at the drop item position
this->beginInsertRows(parentModelIndex, dropIndex, listOfItemsToDrop.size());
this->beginInsertRows(parentModelIndex, dropIndex, dropIndex + listOfItemsToDrop.size() - 1);

for (diIter = listOfItemsToDrop.begin();
diIter != listOfItemsToDrop.end();
Expand Down

0 comments on commit f12958e

Please sign in to comment.