Skip to content
Permalink
Browse files

[Geometry checker] Fix broken LayerFeature geometry transform

  • Loading branch information
manisandro committed Oct 23, 2017
1 parent bd44483 commit 1e499558a3ad0bc00c0e7941938475d2e116213b
@@ -32,9 +32,9 @@ namespace QgsGeometryCheckerUtils
, mMapCrs( useMapCrs )
{
mGeometry = feature.geometry().geometry()->clone();
if ( useMapCrs && !mLayerToMapTransform.isShortCircuited() )
if ( useMapCrs && !mFeaturePool->getLayerToMapTransform().isShortCircuited() )
{
mGeometry->transform( mLayerToMapTransform );
mGeometry->transform( mFeaturePool->getLayerToMapTransform() );
}
}
LayerFeature::~LayerFeature()
@@ -48,8 +48,6 @@ namespace QgsGeometryCheckerUtils
private:
const QgsFeaturePool *mFeaturePool;
QgsFeature mFeature;
double mLayerToMapUnits;
QgsCoordinateTransform mLayerToMapTransform;
QgsAbstractGeometry *mGeometry = nullptr;
bool mMapCrs;
};

0 comments on commit 1e49955

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