summaryrefslogtreecommitdiff
path: root/qif.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2005-06-22 23:05:11 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:12 -0400
commit6ecec7eb1e670dd31b670287d577980a69c9ce28 (patch)
tree115b73c72d2173e471b5ba165e20e4a0ffaf68a6 /qif.cc
parent69881ae3853f581943aa018159c6814ad7e4fe06 (diff)
downloadfork-ledger-6ecec7eb1e670dd31b670287d577980a69c9ce28.tar.gz
fork-ledger-6ecec7eb1e670dd31b670287d577980a69c9ce28.tar.bz2
fork-ledger-6ecec7eb1e670dd31b670287d577980a69c9ce28.zip
(parse): Removed an unnecessary line of code.
Diffstat (limited to 'qif.cc')
-rw-r--r--qif.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/qif.cc b/qif.cc
index a6be039d..702e2b1d 100644
--- a/qif.cc
+++ b/qif.cc
@@ -176,8 +176,9 @@ unsigned int qif_parser_t::parse(std::istream& in,
}
transaction_t * nxact = new transaction_t(other);
+ // The amount doesn't need to be set because the code below will
+ // balance this transaction against the other.
entry->add_transaction(nxact);
- nxact->amount.negate();
if (journal->add_entry(entry.get())) {
entry.release();