Skip to content
Permalink
Browse files

Add safety check for layer pointer

Fixes #37598
  • Loading branch information
m-kuhn committed Jul 5, 2020
1 parent a60ddc0 commit d9e086f72f58d6d095b4f9365fd4a629f3390fa3
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgsmaptooltrimextendfeature.cpp
@@ -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() );

0 comments on commit d9e086f

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