summaryrefslogtreecommitdiff
path: root/qif.cc
diff options
context:
space:
mode:
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();