There was an error while loading. Please reload this page.
1 parent 4c8280a commit 76c6ec8Copy full SHA for 76c6ec8
1 file changed
src/app/qgsattributesformproperties.cpp
@@ -277,7 +277,7 @@ void QgsAttributesFormProperties::loadAttributeTypeDialog()
277
278
void QgsAttributesFormProperties::storeAttributeTypeDialog()
279
{
280
- if ( mAttributeTypeDialog->fieldIdx() < 0 )
+ if ( mAttributeTypeDialog->fieldIdx() < 0 || mAttributeTypeDialog->fieldIdx() >= mLayer->fields().count() )
281
return;
282
283
FieldConfig cfg;
0 commit comments