summaryrefslogtreecommitdiff
path: root/src/xact.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-01 00:20:23 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-11-01 04:25:23 -0500
commitc5c2027624de16d11e697d6d342e23b0aa5bb23f (patch)
tree41e0ad703a52b5915127f52c4e3b64aef06daca1 /src/xact.cc
parent3497076e048f4aa9c4bea729d9a4070fe4dcfe66 (diff)
downloadfork-ledger-c5c2027624de16d11e697d6d342e23b0aa5bb23f.tar.gz
fork-ledger-c5c2027624de16d11e697d6d342e23b0aa5bb23f.tar.bz2
fork-ledger-c5c2027624de16d11e697d6d342e23b0aa5bb23f.zip
Fix to xact_t::valid()
Diffstat (limited to 'src/xact.cc')
-rw-r--r--src/xact.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xact.cc b/src/xact.cc
index 1ab54bdf..34b8c340 100644
--- a/src/xact.cc
+++ b/src/xact.cc
@@ -457,7 +457,7 @@ bool xact_t::valid() const
DEBUG("ledger.validate", "xact_t: ! _date");
return false;
}
- if (! journal) {
+ if (! has_flags(ITEM_GENERATED | ITEM_TEMP) && ! journal) {
DEBUG("ledger.validate", "xact_t: ! journal");
return false;
}