Skip to content
Permalink
Browse files

Prevent crash when fields are deleted from the vector options dialog

  • Loading branch information
elpaso committed Feb 20, 2019
1 parent 4c8280a commit 76c6ec8c1afe095a05d96b4e0683876b43eab57b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgsattributesformproperties.cpp
@@ -277,7 +277,7 @@ void QgsAttributesFormProperties::loadAttributeTypeDialog()

void QgsAttributesFormProperties::storeAttributeTypeDialog()
{
if ( mAttributeTypeDialog->fieldIdx() < 0 )
if ( mAttributeTypeDialog->fieldIdx() < 0 || mAttributeTypeDialog->fieldIdx() >= mLayer->fields().count() )
return;

FieldConfig cfg;

0 comments on commit 76c6ec8

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