From 19de076b4d2419411363c82d216e6b71ff96b18a Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 20 Aug 2004 02:51:14 -0400 Subject: updated gnucash support --- valexpr.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'valexpr.cc') diff --git a/valexpr.cc b/valexpr.cc index 536b2255..d4c31085 100644 --- a/valexpr.cc +++ b/valexpr.cc @@ -187,8 +187,8 @@ void value_expr_t::compute(value_t& result, const details_t& details, case INDEX: if (details.xact) result = details.xact->index + 1; - else - result = 0U; + else if (details.account) + result = details.account->count; break; case DEPTH: @@ -424,8 +424,6 @@ value_expr_t * parse_value_term(std::istream& in) case 'V': node.reset(parse_value_term("P(O,d)")); break; case 'g': node.reset(parse_value_expr("v-c")); break; case 'G': node.reset(parse_value_expr("V-C")); break; - case 'o': node.reset(parse_value_expr("d-b")); break; - case 'w': node.reset(parse_value_expr("e-d")); break; // Functions case '-': -- cgit v1.2.3