Skip to content

Commit

Permalink
Safety check
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 15, 2018
1 parent 8ba78e2 commit 5c9a0da
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/qgsgeometryvalidationservice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,12 @@ void QgsGeometryValidationService::fixError( QgsGeometryCheckError *error, int m
}
}

layer->triggerRepaint();
if ( layer )
{
layer->triggerRepaint();

emit topologyErrorUpdated( layer, error );
emit topologyErrorUpdated( layer, error );
}
}

void QgsGeometryValidationService::onLayersAdded( const QList<QgsMapLayer *> &layers )
Expand Down

0 comments on commit 5c9a0da

Please sign in to comment.