Skip to content
Permalink
Browse files

Merge pull request #37615 from qgis-bot/backport-37600-to-release-3_14

[Backport release-3_14] Add safety check for layer pointer
  • Loading branch information
m-kuhn committed Jul 6, 2020
2 parents bb0ef11 + 36bc3d4 commit f8cc4c535147344583284f8048e545b52f31c691
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 f8cc4c5

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