File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -968,11 +968,14 @@ void QgsVertexTool::tryToSelectFeature( QgsMapMouseEvent *e )
968
968
}
969
969
}
970
970
971
- // move to the next alternative
972
- if ( mSelectedFeatureAlternatives ->index < mSelectedFeatureAlternatives ->alternatives .count () - 1 )
973
- ++mSelectedFeatureAlternatives ->index ;
974
- else
975
- mSelectedFeatureAlternatives ->index = -1 ;
971
+ if ( mSelectedFeatureAlternatives )
972
+ {
973
+ // move to the next alternative
974
+ if ( mSelectedFeatureAlternatives ->index < mSelectedFeatureAlternatives ->alternatives .count () - 1 )
975
+ ++mSelectedFeatureAlternatives ->index ;
976
+ else
977
+ mSelectedFeatureAlternatives ->index = -1 ;
978
+ }
976
979
977
980
if ( mSelectedFeatureAlternatives && mSelectedFeatureAlternatives ->index != -1 )
978
981
{
You can’t perform that action at this time.
0 commit comments