Skip to content

Commit fe5a80c

Browse files
committed
Precision fix
1 parent 6a94033 commit fe5a80c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/qgsgeometryvalidationservice.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ void QgsGeometryValidationService::enableLayerChecks( QgsVectorLayer *layer )
129129
qDeleteAll( mLayerCheckStates[layer].topologyChecks );
130130

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

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

0 commit comments

Comments
 (0)