Skip to content

Commit 44ce916

Browse files
committed
[Geometry checker] Also check other parts of same feature in dangle check
1 parent 183671f commit 44ce916

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/analysis/vector/geometry_checker/qgsgeometrydanglecheck.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ void QgsGeometryDangleCheck::collectErrors( QList<QgsGeometryCheckError *> &erro
4949
QgsGeometryCheckerUtils::LayerFeatures checkFeatures( mContext->featurePools, QList<QString>() << layerFeature.layer().id(), line->boundingBox(), {QgsWkbTypes::LineGeometry} );
5050
for ( const QgsGeometryCheckerUtils::LayerFeature &checkFeature : checkFeatures )
5151
{
52-
if ( checkFeature.feature().id() == layerFeature.feature().id() )
53-
{
54-
// Skip current feature, it was already checked above
55-
continue;
56-
}
5752
const QgsAbstractGeometry *testGeom = checkFeature.geometry();
5853
for ( int jPart = 0, mParts = testGeom->partCount(); jPart < mParts; ++jPart )
5954
{
55+
if ( checkFeature.feature().id() == layerFeature.feature().id() && iPart == jPart )
56+
{
57+
// Skip current feature part, it was already checked above
58+
continue;
59+
}
6060
const QgsLineString *testLine = dynamic_cast<const QgsLineString *>( QgsGeometryCheckerUtils::getGeomPart( testGeom, jPart ) );
6161
if ( !testLine )
6262
{

0 commit comments

Comments
 (0)