summaryrefslogtreecommitdiff
path: root/src/annotate.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2022-02-03 09:05:43 -0800
committerJohn Wiegley <johnw@newartisans.com>2022-02-03 09:05:43 -0800
commitc231a6f51399bf7f9708bade6801632283ebe5ee (patch)
tree602f50888a2736b39b2b7326bb56b5bc01ddc7bf /src/annotate.h
parent015d6be8346cd779dcf5685a3aeb08b2d59287be (diff)
downloadfork-ledger-c231a6f51399bf7f9708bade6801632283ebe5ee.tar.gz
fork-ledger-c231a6f51399bf7f9708bade6801632283ebe5ee.tar.bz2
fork-ledger-c231a6f51399bf7f9708bade6801632283ebe5ee.zip
Revert "Revert "Revert "Compare price annotations using their textual rendering"""
This reverts commit bc45e0205d23f5a8f2e3e389195daa85f4b07ec0.
Diffstat (limited to 'src/annotate.h')
-rw-r--r--src/annotate.h4
1 files changed, 1 insertions, 3 deletions
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 ?