From c59018c29ddfc7a46aeb951fbcd5cb5b93f47ec0 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 3 May 2007 06:11:04 +0000 Subject: Revised how commodities are dealt with. --- src/xmlparse.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/xmlparse.cc') diff --git a/src/xmlparse.cc b/src/xmlparse.cc index 94b76ad7..c54e5969 100644 --- a/src/xmlparse.cc +++ b/src/xmlparse.cc @@ -104,7 +104,7 @@ static void endElement(void *userData, const char *name) } else if (std::strcmp(name, "symbol") == 0) { assert(! curr_comm); - curr_comm = commodity_t::find_or_create(data); + curr_comm = amount_t::default_pool->find_or_create(data); assert(curr_comm); curr_comm->add_flags(COMMODITY_STYLE_SUFFIXED); if (! comm_flags.empty()) { -- cgit v1.2.3