summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/annotate.h4
1 files changed, 3 insertions, 1 deletions
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);