Skip to content

Commit

Permalink
Use qgsDoubleNear for equality comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
YoannQDQ authored and nyalldawson committed Mar 29, 2023
1 parent 9650c37 commit d0755c3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/qgsbookmarkmanager.cpp
Expand Up @@ -64,7 +64,11 @@ QDomElement QgsBookmark::writeXml( QDomDocument &doc ) const

bool QgsBookmark::operator==( const QgsBookmark &other ) const
{
return mId == other.mId && mName == other.mName && mExtent == other.mExtent && mGroup == other.mGroup && mRotation == other.mRotation;
return mId == other.mId
&& mName == other.mName
&& mExtent == other.mExtent
&& mGroup == other.mGroup
&& qgsDoubleNear( mRotation, other.mRotation );
}

bool QgsBookmark::operator!=( const QgsBookmark &other ) const
Expand Down

0 comments on commit d0755c3

Please sign in to comment.