Skip to content
Permalink
Browse files

Only insert rows if errors is not empty

  • Loading branch information
m-kuhn committed Oct 3, 2018
1 parent 7f142ad commit 417fa068b74c1b73199601daea18153b964b73f9
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/app/qgsgeometryvalidationmodel.cpp
@@ -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() )

0 comments on commit 417fa06

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