Skip to content
Permalink
Browse files

[Geometry checker] Fix incorrect mapToLayerUnits -> layerToMapUntis

  • Loading branch information
manisandro committed Jun 29, 2017
1 parent 9fe1d7b commit c14cdbb6550a5cbfb058ff6f6e99b29124017233
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/plugins/geometry_checker/ui/qgsgeometrycheckersetuptab.cpp
@@ -412,9 +412,9 @@ void QgsGeometryCheckerSetupTab::runChecks()
QMap<QString, QgsFeaturePool *> featurePools;
for ( QgsVectorLayer *layer : processLayers )
{
double mapToLayerUnits = 1. / mIface->mapCanvas()->mapSettings().layerToMapUnits( layer );
QgsCoordinateTransform mapToLayerTransform = QgsCoordinateTransformCache::instance()->transform( mIface->mapCanvas()->mapSettings().destinationCrs().authid(), layer->crs().authid() );
featurePools.insert( layer->id(), new QgsFeaturePool( layer, mapToLayerUnits, mapToLayerTransform, selectedOnly ) );
double layerToMapUntis = mIface->mapCanvas()->mapSettings().layerToMapUnits( layer );
QgsCoordinateTransform layerToMapTransform = QgsCoordinateTransformCache::instance()->transform( layer->crs().authid(), mIface->mapCanvas()->mapSettings().destinationCrs().authid() );
featurePools.insert( layer->id(), new QgsFeaturePool( layer, layerToMapUntis, layerToMapTransform, selectedOnly ) );
}

QgsGeometryCheckerContext *context = new QgsGeometryCheckerContext( ui.spinBoxTolerance->value(), mIface->mapCanvas()->mapSettings().destinationCrs().authid(), featurePools );

0 comments on commit c14cdbb

Please sign in to comment.
You can’t perform that action at this time.