diff options
author | John Wiegley <johnw@newartisans.com> | 2012-03-07 08:34:15 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-03-07 08:34:15 -0600 |
commit | 7bb83173dae617b8e754fff8e52390ff9664873b (patch) | |
tree | 53fb7d1b4d81299f3095006730984d7ad0143403 /src/filters.cc | |
parent | 04f884b14fd7cc396c9d442685df8489ae7e8a15 (diff) | |
download | fork-ledger-7bb83173dae617b8e754fff8e52390ff9664873b.tar.gz fork-ledger-7bb83173dae617b8e754fff8e52390ff9664873b.tar.bz2 fork-ledger-7bb83173dae617b8e754fff8e52390ff9664873b.zip |
Added some missing DEBUG #if's
Diffstat (limited to 'src/filters.cc')
-rw-r--r-- | src/filters.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/filters.cc b/src/filters.cc index 34df2056..3a975920 100644 --- a/src/filters.cc +++ b/src/filters.cc @@ -891,7 +891,9 @@ void subtotal_posts::operator()(post_t& post) std::pair<values_map::iterator, bool> result = #endif values.insert(values_pair(acct->fullname(), acct_value_t(acct, temp))); +#if defined(DEBUG_ON) assert(result.second); +#endif } else { post.add_to_value((*i).second.value, amount_expr); } |