Skip to content
Permalink
Browse files

Add safety check for layer pointer

Fixes #37598
  • Loading branch information
m-kuhn authored and nyalldawson committed Jul 6, 2020
1 parent 05e08de commit f21bbc7db7dfe0b2956626b6eb46a99f140189ca
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 );
if ( match.isValid() )
if ( match.isValid() && match.layer() )
{
mIs3DLayer = QgsWkbTypes::hasZ( match.layer()->wkbType() );

0 comments on commit f21bbc7

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