|
|
|
@ -75,10 +75,10 @@ QModelIndex CSMWorld::NestedTableProxyModel::index(int row, int column, const QM
|
|
|
|
|
{
|
|
|
|
|
assert (!parent.isValid());
|
|
|
|
|
|
|
|
|
|
int rows = mMainModel->rowCount(parent);
|
|
|
|
|
int columns = mMainModel->columnCount(parent);
|
|
|
|
|
int numRows = rowCount(parent);
|
|
|
|
|
int numColumns = columnCount(parent);
|
|
|
|
|
|
|
|
|
|
if (row < 0 || row >= rows || column < 0 || column >= columns)
|
|
|
|
|
if (row < 0 || row >= numRows || column < 0 || column >= numColumns)
|
|
|
|
|
return QModelIndex();
|
|
|
|
|
|
|
|
|
|
return createIndex(row, column);
|
|
|
|
|