mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
[memory] Ignore unset attributes when calling changeAttributeValues
This commit is contained in:
parent
984d75c3ff
commit
ac756bb8e8
@ -682,6 +682,9 @@ bool QgsMemoryProvider::changeAttributeValues( const QgsChangedAttributesMap &at
|
||||
continue;
|
||||
|
||||
QVariant attrValue = it2.value();
|
||||
if ( attrValue.userType() == qMetaTypeId< QgsUnsetAttributeValue >() )
|
||||
continue;
|
||||
|
||||
// Check attribute conversion
|
||||
const bool conversionError { ! QgsVariantUtils::isNull( attrValue )
|
||||
&& ! mFields.at( it2.key() ).convertCompatible( attrValue, &errorMessage ) };
|
||||
|
Loading…
x
Reference in New Issue
Block a user