From 605fcde2e7c7d9fa05046ca81bff5a75cf2baa94 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 9 Mar 2012 06:51:15 -0600 Subject: Corrected value_expr annotation comparisons --- src/annotate.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/annotate.h') diff --git a/src/annotate.h b/src/annotate.h index c1f52a62..22c3d8ad 100644 --- a/src/annotate.h +++ b/src/annotate.h @@ -93,7 +93,9 @@ struct annotation_t : public supports_flags<>, return (price == rhs.price && date == rhs.date && tag == rhs.tag && - value_expr == rhs.value_expr); + (value_expr && rhs.value_expr ? + value_expr->text() == rhs.value_expr->text() : + value_expr == rhs.value_expr)); } void parse(std::istream& in); -- cgit v1.2.3