mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Only insert rows if errors is not empty
This commit is contained in:
parent
7f142ad2b6
commit
417fa068b7
@ -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() )
|
||||
|
Loading…
x
Reference in New Issue
Block a user