mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-22 00:06:57 -04:00
Prevent crash when fields are deleted from the vector options dialog
This commit is contained in:
parent
4c8280a5f8
commit
76c6ec8c1a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user