Project

General

Profile

Bug #2039 ยป WSortFilterProxyModel-bugfix.patch

Anonymous, 07/16/2013 10:04 AM

View differences:

src/Wt/WSortFilterProxyModel.C
WModelIndex parent = mapFromSource(topLeft.parent());
Item *item = itemFromIndex(parent);
bool isNotRootIndex = topLeft.parent().isValid();
if (item == mappedRootItem_ && isNotRootIndex)
{
// index doesn't refer to root item, hence simply invalid/not meant to be displayed
return;
}
for (int row = topLeft.row(); row <= bottomRight.row(); ++row) {
int oldMappedRow = item->sourceRowMap_[row];
    (1-1/1)