Skip to content

Commit

Permalink
[Geometry checker] Fix wrong obsoletes test in QgsGeometryContainedCh…
Browse files Browse the repository at this point in the history
…eck::fixError
  • Loading branch information
manisandro committed Oct 23, 2017
1 parent 0ffd00d commit 8f343a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void QgsGeometryContainedCheck::fixError( QgsGeometryCheckError *error, int meth
QSharedPointer<QgsGeometryEngine> geomEngineA = QgsGeometryCheckerUtils::createGeomEngine( layerFeatureA.geometry(), mContext->tolerance );
QSharedPointer<QgsGeometryEngine> geomEngineB = QgsGeometryCheckerUtils::createGeomEngine( layerFeatureB.geometry(), mContext->tolerance );

if ( !( geomEngineA->contains( layerFeatureB.geometry() ) && !geomEngineB->contains( layerFeatureA.geometry() ) ) )
if ( !( geomEngineB->contains( layerFeatureA.geometry() ) && !geomEngineA->contains( layerFeatureB.geometry() ) ) )
{
error->setObsolete();
return;
Expand Down

0 comments on commit 8f343a9

Please sign in to comment.