diff options
author | John Wiegley <johnw@newartisans.com> | 2012-03-12 22:38:52 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-03-12 22:38:52 -0500 |
commit | 098f3d45d723a1fe1fa5f011f65ffd49915cc281 (patch) | |
tree | b5f3811de64c013a7a042eb426ad96c76465d8b9 /src/filters.h | |
parent | be289fba1f3bdb4dc07d5595ad8b46a9309f42f3 (diff) | |
download | fork-ledger-098f3d45d723a1fe1fa5f011f65ffd49915cc281.tar.gz fork-ledger-098f3d45d723a1fe1fa5f011f65ffd49915cc281.tar.bz2 fork-ledger-098f3d45d723a1fe1fa5f011f65ffd49915cc281.zip |
Fixed speed issue with commodities reports
Diffstat (limited to 'src/filters.h')
-rw-r--r-- | src/filters.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/filters.h b/src/filters.h index af68cd7c..1ef92bbe 100644 --- a/src/filters.h +++ b/src/filters.h @@ -156,7 +156,7 @@ public: : item_handler<post_t>(handler) { TRACE_CTOR(pass_down_posts, "post_handler_ptr, posts_iterator"); - while (post_t * post = *iter++) { + while (post_t * post = *iter) { try { item_handler<post_t>::operator()(*post); } @@ -164,6 +164,7 @@ public: add_error_context(item_context(*post, _("While handling posting"))); throw; } + iter.increment(); } item_handler<post_t>::flush(); |