From c231a6f51399bf7f9708bade6801632283ebe5ee Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 3 Feb 2022 09:05:43 -0800 Subject: Revert "Revert "Revert "Compare price annotations using their textual rendering""" This reverts commit bc45e0205d23f5a8f2e3e389195daa85f4b07ec0. --- src/annotate.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/annotate.h') diff --git a/src/annotate.h b/src/annotate.h index c670f8cc..75d42589 100644 --- a/src/annotate.h +++ b/src/annotate.h @@ -91,9 +91,7 @@ struct annotation_t : public supports_flags<>, bool operator<(const annotation_t& rhs) const; bool operator==(const annotation_t& rhs) const { - return (((! price && ! rhs.price) || - (price && rhs.price && - (*price).to_string() == (*rhs.price).to_string())) && + return (price == rhs.price && date == rhs.date && tag == rhs.tag && (value_expr && rhs.value_expr ? -- cgit v1.2.3