Skip to content

Commit

Permalink
Precision fix
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 15, 2018
1 parent 6a94033 commit fe5a80c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsgeometryvalidationservice.cpp
Expand Up @@ -129,7 +129,7 @@ void QgsGeometryValidationService::enableLayerChecks( QgsVectorLayer *layer )
qDeleteAll( mLayerCheckStates[layer].topologyChecks );

// TODO: ownership and lifetime of the context!!
auto context = new QgsGeometryCheckContext( 8, mProject->crs(), mProject->transformContext() );
auto context = new QgsGeometryCheckContext( log10( layer->geometryOptions()->geometryPrecision() ) * -1, mProject->crs(), mProject->transformContext() );
QList<QgsGeometryCheck *> layerChecks;

QgsGeometryCheckRegistry *checkRegistry = QgsAnalysis::instance()->geometryCheckRegistry();
Expand Down

0 comments on commit fe5a80c

Please sign in to comment.