Skip to content

Commit

Permalink
[Geometry checker] Fix broken LayerFeature geometry transform
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Oct 23, 2017
1 parent bd44483 commit 1e49955
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Expand Up @@ -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()
Expand Down
Expand Up @@ -48,8 +48,6 @@ namespace QgsGeometryCheckerUtils
private:
const QgsFeaturePool *mFeaturePool;
QgsFeature mFeature;
double mLayerToMapUnits;
QgsCoordinateTransform mLayerToMapTransform;
QgsAbstractGeometry *mGeometry = nullptr;
bool mMapCrs;
};
Expand Down

0 comments on commit 1e49955

Please sign in to comment.