Only insert rows if errors is not empty

This commit is contained in:
Matthias Kuhn 2018-10-03 13:57:27 +02:00
parent 7f142ad2b6
commit 417fa068b7
No known key found for this signature in database
GPG Key ID: 7A7F1A1C90C3E6A7

View File

@ -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() )