summaryrefslogtreecommitdiff
path: root/gnucash.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-13 04:39:50 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-13 04:39:50 -0400
commit8a70bbed521662e76c1b3c42460743bb891c2deb (patch)
tree33b27e2ad942804c0e8947e84c122ddf68b1015c /gnucash.cc
parenta3342146041a0ec0e5d58ba5b942944ee00e6d37 (diff)
downloadfork-ledger-8a70bbed521662e76c1b3c42460743bb891c2deb.tar.gz
fork-ledger-8a70bbed521662e76c1b3c42460743bb891c2deb.tar.bz2
fork-ledger-8a70bbed521662e76c1b3c42460743bb891c2deb.zip
fix to gnucash support
Diffstat (limited to 'gnucash.cc')
-rw-r--r--gnucash.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/gnucash.cc b/gnucash.cc
index aedffbe5..011889fd 100644
--- a/gnucash.cc
+++ b/gnucash.cc
@@ -85,8 +85,7 @@ static void startElement(void *userData, const char *name, const char **atts)
action = ENTRY_DESC;
else if (std::strcmp(name, "trn:split") == 0) {
assert(curr_entry);
- curr_entry->add_transaction(new transaction_t(curr_entry, curr_account,
- amount_t()));
+ curr_entry->add_transaction(new transaction_t(curr_entry, curr_account));
}
else if (std::strcmp(name, "split:reconciled-state") == 0)
action = XACT_STATE;