summaryrefslogtreecommitdiff
path: root/src/xact.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-06 13:04:44 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-06 13:04:44 -0400
commite8ffbd6f2fb57f2b65f57f92edf8eb444cc2f71f (patch)
treeb72e9a1454b6721d59e3844d71a91880c94e2cae /src/xact.cc
parent290cac7b84b60305e185c140645c9bac2ca9fb0e (diff)
parent39f9854e2c1f807f6e9c90d80e1eec2bf9b90017 (diff)
downloadfork-ledger-e8ffbd6f2fb57f2b65f57f92edf8eb444cc2f71f.tar.gz
fork-ledger-e8ffbd6f2fb57f2b65f57f92edf8eb444cc2f71f.tar.bz2
fork-ledger-e8ffbd6f2fb57f2b65f57f92edf8eb444cc2f71f.zip
Merge branch 'next'
Diffstat (limited to 'src/xact.cc')
-rw-r--r--src/xact.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/xact.cc b/src/xact.cc
index 6c10ac04..495e6410 100644
--- a/src/xact.cc
+++ b/src/xact.cc
@@ -685,16 +685,15 @@ void auto_xact_t::extend_xact(xact_base_t& xact)
else
amt = post_amount;
+#if defined(DEBUG_ON)
IF_DEBUG("xact.extend") {
DEBUG("xact.extend",
"Initial post on line " << initial_post->pos->beg_line << ": "
<< "amount " << initial_post->amount << " (precision "
<< initial_post->amount.precision() << ")");
-#if defined(DEBUG_ON)
if (initial_post->amount.keep_precision())
DEBUG("xact.extend", " precision is kept");
-#endif
DEBUG("xact.extend",
"Posting on line " << post->pos->beg_line << ": "
@@ -702,13 +701,12 @@ void auto_xact_t::extend_xact(xact_base_t& xact)
<< " (precision " << post_amount.precision()
<< " != " << amt.precision() << ")");
-#if defined(DEBUG_ON)
if (post_amount.keep_precision())
DEBUG("xact.extend", " precision is kept");
if (amt.keep_precision())
DEBUG("xact.extend", " amt precision is kept");
-#endif
}
+#endif // defined(DEBUG_ON)
account_t * account = post->account;
string fullname = account->fullname();