Skip to content
Permalink
Browse files

[Geometry checker] Fix possible crash in QgsGeometryCheckerFixSummary…

…Dialog::addError
  • Loading branch information
manisandro committed Oct 19, 2017
1 parent 50e1c7a commit e00f767576f10a656e9fc5094fbce3ecd5898862
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/plugins/geometry_checker/qgsgeometrycheckerfixsummarydialog.cpp
@@ -74,7 +74,7 @@ void QgsGeometryCheckerFixSummaryDialog::addError( QTableWidget *table, QgsGeome

int row = table->rowCount();
table->insertRow( row );
table->setItem( row, 0, new QTableWidgetItem( mChecker->getContext()->featurePools[error->layerId()]->getLayer()->name() ) );
table->setItem( row, 0, new QTableWidgetItem( !error->layerId().isEmpty() ? mChecker->getContext()->featurePools[error->layerId()]->getLayer()->name() : "" ) );
QTableWidgetItem *idItem = new QTableWidgetItem();
idItem->setData( Qt::EditRole, error->featureId() != FEATUREID_NULL ? QVariant( error->featureId() ) : QVariant() );
table->setItem( row, 1, idItem );

0 comments on commit e00f767

Please sign in to comment.
You can’t perform that action at this time.