summaryrefslogtreecommitdiff
path: root/ledger.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ledger.cc')
-rw-r--r--ledger.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/ledger.cc b/ledger.cc
index 66fbe9c7..d2a3bf15 100644
--- a/ledger.cc
+++ b/ledger.cc
@@ -253,6 +253,12 @@ bool journal_t::valid() const
if (! (*i)->valid())
return false;
+ for (commodities_map::const_iterator i = commodity_t::commodities.begin();
+ i != commodity_t::commodities.end();
+ i++)
+ if (! (*i).second->valid())
+ return false;
+
return true;
}