diff options
author | Martin Michlmayr <tbm@cyrius.com> | 2020-05-18 13:07:19 +0800 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2020-05-18 13:07:19 +0800 |
commit | 7f78cadea4a2359f1f53ce9c0c66b6d3fafd81c4 (patch) | |
tree | e1f7c632a44aa03a72f79f904eb8ecae51985935 /src/annotate.h | |
parent | 12e5106beba7dc967049fd11fb09b85485535919 (diff) | |
download | fork-ledger-7f78cadea4a2359f1f53ce9c0c66b6d3fafd81c4.tar.gz fork-ledger-7f78cadea4a2359f1f53ce9c0c66b6d3fafd81c4.tar.bz2 fork-ledger-7f78cadea4a2359f1f53ce9c0c66b6d3fafd81c4.zip |
Revert "Compare price annotations using their textual rendering"
This reverts commit a6a58af28f30ee81f86604b56740d98af8b75c38.
Fixes #1907
Diffstat (limited to 'src/annotate.h')
-rw-r--r-- | src/annotate.h | 4 |
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 ? |