summaryrefslogtreecommitdiff
path: root/src/amount.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-10-28 02:34:40 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-10-28 02:34:40 -0400
commitbd96928410124e70e70ada7fd05820e2cf781d2c (patch)
treea054e62051e8a2cdb7351f9b166a1fba5d5ba43f /src/amount.cc
parentade0a8b6f3eeb893eda2ae7355d503bf6514f147 (diff)
parent65e8eca6cfd394390c1e2091cf8674a93d2eae2d (diff)
downloadfork-ledger-bd96928410124e70e70ada7fd05820e2cf781d2c.tar.gz
fork-ledger-bd96928410124e70e70ada7fd05820e2cf781d2c.tar.bz2
fork-ledger-bd96928410124e70e70ada7fd05820e2cf781d2c.zip
Merge branch 'next'
Diffstat (limited to 'src/amount.cc')
-rw-r--r--src/amount.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amount.cc b/src/amount.cc
index 5aa985c8..a6788af9 100644
--- a/src/amount.cc
+++ b/src/amount.cc
@@ -107,6 +107,7 @@ void amount_t::initialize(shared_ptr<commodity_pool_t> pool)
mpq_init(tempq);
mpfr_init(tempf);
mpfr_init(tempfb);
+
is_initialized = true;
}
current_pool = pool;
@@ -126,6 +127,7 @@ void amount_t::shutdown()
mpq_clear(tempq);
mpfr_clear(tempf);
mpfr_clear(tempfb);
+
is_initialized = false;
}
}