Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix equals test for QgsFieldItem
We need to manually consider the comment here, as it's NOT considered
as part of the QgsField equality operator
  • Loading branch information
nyalldawson committed Apr 18, 2023
1 parent 1fe0863 commit 4d11993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/browser/qgsfieldsitem.cpp
Expand Up @@ -224,6 +224,6 @@ bool QgsFieldItem::equal( const QgsDataItem *other )
if ( !o )
return false;

return ( mPath == o->mPath && mName == o->mName && mField == o->mField );
return ( mPath == o->mPath && mName == o->mName && mField == o->mField && mField.comment() == o->mField.comment() );
}

0 comments on commit 4d11993

Please sign in to comment.