Skip to content

Commit

Permalink
[Geometry checker] Fix possible crash in QgsGeometryCheckerFixSummary…
Browse files Browse the repository at this point in the history
…Dialog::addError
  • Loading branch information
manisandro committed Oct 23, 2017
1 parent 50e1c7a commit e00f767
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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 );
Expand Down

0 comments on commit e00f767

Please sign in to comment.