Precision fix

This commit is contained in:
Matthias Kuhn 2018-10-01 15:18:21 +02:00
parent 6a94033487
commit fe5a80c843
No known key found for this signature in database
GPG Key ID: 7A7F1A1C90C3E6A7

View File

@ -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();