Skip to content

Commit

Permalink
Only insert rows if errors is not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 15, 2018
1 parent 7f142ad commit 417fa06
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/qgsgeometryvalidationmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,9 @@ void QgsGeometryValidationModel::onGeometryCheckStarted( QgsVectorLayer *layer,

void QgsGeometryValidationModel::onTopologyChecksUpdated( QgsVectorLayer *layer, const QList<std::shared_ptr<QgsGeometryCheckError> > &errors )
{
if ( errors.empty() )
return;

auto &topologyLayerErrors = mTopologyErrorStorage[layer];

if ( layer == currentLayer() )
Expand Down

0 comments on commit 417fa06

Please sign in to comment.