summaryrefslogtreecommitdiff
path: root/src/annotate.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-02 16:57:53 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-02 16:57:53 -0500
commit3f8c126c798d575d27d199ee3337499f338dc1ee (patch)
treeb0c3f6500f142e4085f889ab498b2f7f65109c2b /src/annotate.cc
parentede73e8889ce4c5b45ce837f312047b8d259fecf (diff)
downloadfork-ledger-3f8c126c798d575d27d199ee3337499f338dc1ee.tar.gz
fork-ledger-3f8c126c798d575d27d199ee3337499f338dc1ee.tar.bz2
fork-ledger-3f8c126c798d575d27d199ee3337499f338dc1ee.zip
Use is_annotated() method rather than "annotated"
Diffstat (limited to 'src/annotate.cc')
-rw-r--r--src/annotate.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/annotate.cc b/src/annotate.cc
index c6084f7f..9c676086 100644
--- a/src/annotate.cc
+++ b/src/annotate.cc
@@ -135,13 +135,13 @@ void annotation_t::print(std::ostream& out, bool keep_base) const
bool keep_details_t::keep_all(const commodity_t& comm) const
{
- return (! comm.annotated ||
+ return (! comm.is_annotated() ||
(keep_price && keep_date && keep_tag && ! only_actuals));
}
bool keep_details_t::keep_any(const commodity_t& comm) const
{
- return comm.annotated && (keep_price || keep_date || keep_tag);
+ return comm.is_annotated() && (keep_price || keep_date || keep_tag);
}
bool annotated_commodity_t::operator==(const commodity_t& comm) const