Skip to content
Permalink
Browse files
[vectorlayer] Fix updateFeature() when an attribute's variant goes fr…
…om null to default null value
  • Loading branch information
nirvn committed Apr 13, 2021
1 parent 3ee49a6 commit 623334af769aab1967f1237d03fab35fc3d18ca0
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/vector/qgsvectorlayer.cpp
@@ -1072,7 +1072,7 @@ bool QgsVectorLayer::updateFeature( QgsFeature &updatedFeature, bool skipDefault

for ( int attr = 0; attr < fa.count(); ++attr )
{
if ( fa.at( attr ) != ca.at( attr ) )
if ( !qgsVariantEqual( fa.at( attr ), ca.at( attr ) ) )
{
if ( changeAttributeValue( updatedFeature.id(), attr, fa.at( attr ), ca.at( attr ), true ) )
{

0 comments on commit 623334a

Please sign in to comment.