Skip to content

Commit

Permalink
Add safety check for layer pointer
Browse files Browse the repository at this point in the history
Fixes #37598
  • Loading branch information
m-kuhn committed Jul 5, 2020
1 parent a60ddc0 commit d9e086f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsmaptooltrimextendfeature.cpp
Expand Up @@ -87,7 +87,7 @@ void QgsMapToolTrimExtendFeature::canvasMoveEvent( QgsMapMouseEvent *e )
case StepLimit:

match = mCanvas->snappingUtils()->snapToMap( mMapPoint, &filter, true );
if ( match.isValid() )
if ( match.isValid() && match.layer() )
{
mIs3DLayer = QgsWkbTypes::hasZ( match.layer()->wkbType() );

Expand Down

0 comments on commit d9e086f

Please sign in to comment.