Skip to content

Commit

Permalink
[layouts] Fix crash when re-opening fixed table item's editor
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Mar 31, 2020
1 parent ab6fe9d commit 6d662b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/layout/qgslayoutmanualtablewidget.cpp
Expand Up @@ -188,7 +188,7 @@ void QgsLayoutManualTableWidget::setTableContents()
for ( double width : columnWidths )
{
mEditorDialog->setTableColumnWidth( col, width );
headers << mTable->headers().value( col )->heading();
headers << ( mTable->headers().size() > col ? mTable->headers().value( col )->heading() : QVariant() );
col++;
}
mEditorDialog->setTableHeaders( headers );
Expand Down

0 comments on commit 6d662b0

Please sign in to comment.