Corrected value_expr annotation comparisons

This commit is contained in:
John Wiegley 2012-03-09 06:51:15 -06:00
parent 1a6ec4e8b4
commit 605fcde2e7

View file

@ -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);