mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-23 00:05:43 -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()
|
void QgsAttributesFormProperties::storeAttributeTypeDialog()
|
||||||
{
|
{
|
||||||
if ( mAttributeTypeDialog->fieldIdx() < 0 )
|
if ( mAttributeTypeDialog->fieldIdx() < 0 || mAttributeTypeDialog->fieldIdx() >= mLayer->fields().count() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
FieldConfig cfg;
|
FieldConfig cfg;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user