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 authored and nyalldawson committed Jul 6, 2020
1 parent 05e08de commit f21bbc7
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 );
if ( match.isValid() )
if ( match.isValid() && match.layer() )
{
mIs3DLayer = QgsWkbTypes::hasZ( match.layer()->wkbType() );

Expand Down

0 comments on commit f21bbc7

Please sign in to comment.