Skip to content
Permalink
Browse files

Merge pull request #37600 from m-kuhn/fix_trim_extend_crash

Add safety check for layer pointer
  • Loading branch information
m-kuhn committed Jul 6, 2020
2 parents 398b55e + d9e086f commit 6597b4ab6c4a4bd88f430e72dc6b51468902a87c
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 6597b4a

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