[Geometry checker] Fix layerFeature comparison

This commit is contained in:
Sandro Mani 2017-07-06 12:02:57 +02:00
parent f114b53178
commit c71d4216ca

View File

@ -36,7 +36,7 @@ void QgsGeometryLineIntersectionCheck::collectErrors( QList<QgsGeometryCheckErro
QgsGeometryCheckerUtils::LayerFeatures checkFeatures( mContext->featurePools, featureIds.keys(), line->boundingBox(), {QgsWkbTypes::LineGeometry} );
for ( const QgsGeometryCheckerUtils::LayerFeature &checkFeature : checkFeatures )
{
if ( checkFeature.feature().id() == layerFeature.feature().id() )
if ( checkFeature == layerFeature )
{
// Skip current feature
continue;