mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 20:53:50 +00:00
Fix assert() triggering due to bad index being passed.
This commit is contained in:
parent
18162557b0
commit
a836446d22
1 changed files with 1 additions and 1 deletions
|
@ -447,7 +447,7 @@ void CSVWorld::EditWidget::remake(int row)
|
||||||
//table->resizeColumnsToContents();
|
//table->resizeColumnsToContents();
|
||||||
table->setEditTriggers(QAbstractItemView::SelectedClicked | QAbstractItemView::CurrentChanged);
|
table->setEditTriggers(QAbstractItemView::SelectedClicked | QAbstractItemView::CurrentChanged);
|
||||||
|
|
||||||
int rows = mNestedModels.back()->rowCount(mTable->index(row, i));
|
int rows = mTable->rowCount(mTable->index(row, i));
|
||||||
int rowHeight = (rows == 0) ? table->horizontalHeader()->height() : table->rowHeight(0);
|
int rowHeight = (rows == 0) ? table->horizontalHeader()->height() : table->rowHeight(0);
|
||||||
int tableMaxHeight = (5 * rowHeight)
|
int tableMaxHeight = (5 * rowHeight)
|
||||||
+ table->horizontalHeader()->height() + 2 * table->frameWidth();
|
+ table->horizontalHeader()->height() + 2 * table->frameWidth();
|
||||||
|
|
Loading…
Reference in a new issue