Skip to content
Permalink
Browse files

[Geometry checker] Uniformize error messages

  • Loading branch information
manisandro committed Oct 23, 2017
1 parent 58e39f6 commit 3dc083c8c4677d5364d3cdf3379bed44281f9c82
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/analysis/vector/geometry_checker/qgsgeometryduplicatecheck.cpp
@@ -50,7 +50,7 @@ void QgsGeometryDuplicateCheck::collectErrors( QList<QgsGeometryCheckError *> &e
QSharedPointer<QgsGeometryEngine> geomEngineA = QgsGeometryCheckerUtils::createGeomEngine( layerFeatureA.geometry(), mContext->tolerance );
if ( !geomEngineA->isValid() )
{
messages.append( tr( "Duplicate check failed for %1: the geometry is invalid" ).arg( layerFeatureA.id() ) );
messages.append( tr( "Duplicate check failed for (%1): the geometry is invalid" ).arg( layerFeatureA.id() ) );
continue;
}
QMap<QString, QList<QgsFeatureId>> duplicates;
@@ -72,7 +72,7 @@ void QgsGeometryDuplicateCheck::collectErrors( QList<QgsGeometryCheckError *> &e
}
else if ( !errMsg.isEmpty() )
{
messages.append( tr( "Duplicate check failed for %1, %2: %3" ).arg( layerFeatureA.id() ).arg( layerFeatureB.id() ).arg( errMsg ) );
messages.append( tr( "Duplicate check failed for (%1, %2): %3" ).arg( layerFeatureA.id() ).arg( layerFeatureB.id() ).arg( errMsg ) );
}
delete diffGeom;
}

0 comments on commit 3dc083c

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