diff options
author | John Wiegley <johnw@newartisans.com> | 2012-03-18 02:16:41 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-03-18 02:25:14 -0500 |
commit | 47d7f5a43b286b3c736e21480d84caf75cea885f (patch) | |
tree | e28c3162c6628fbe6a0621e246799744b362d5a3 /src/annotate.h | |
parent | f9088f88360019bb4be8743dd8091036502adb9c (diff) | |
download | fork-ledger-47d7f5a43b286b3c736e21480d84caf75cea885f.tar.gz fork-ledger-47d7f5a43b286b3c736e21480d84caf75cea885f.tar.bz2 fork-ledger-47d7f5a43b286b3c736e21480d84caf75cea885f.zip |
Fix problem with -H and lack of pricing info
Fixes #691
Diffstat (limited to 'src/annotate.h')
-rw-r--r-- | src/annotate.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/annotate.h b/src/annotate.h index 044ebc4d..163ffac5 100644 --- a/src/annotate.h +++ b/src/annotate.h @@ -72,7 +72,7 @@ struct annotation_t : public supports_flags<>, : supports_flags<>(), price(_price), date(_date), tag(_tag), value_expr(_value_expr) { TRACE_CTOR(annotation_t, - "const optional<amount_t>& + date_t + string + expr_t"); + "optional<amount_t> + date_t + string + expr_t"); } annotation_t(const annotation_t& other) : supports_flags<>(other.flags()), @@ -91,9 +91,9 @@ struct annotation_t : public supports_flags<>, bool operator<(const annotation_t& rhs) const; bool operator==(const annotation_t& rhs) const { - return (price == rhs.price && - date == rhs.date && - tag == rhs.tag && + return (price == rhs.price && + date == rhs.date && + tag == rhs.tag && (value_expr && rhs.value_expr ? value_expr->text() == rhs.value_expr->text() : value_expr == rhs.value_expr)); @@ -228,6 +228,7 @@ protected: : commodity_t(_ptr->parent_, _ptr->base), ptr(_ptr), details(_details) { TRACE_CTOR(annotated_commodity_t, "commodity_t *, annotation_t"); annotated = true; + qualified_symbol = _ptr->qualified_symbol; } public: |