summaryrefslogtreecommitdiff
path: root/src/format.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-02-20 17:20:16 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-02-20 17:20:22 -0600
commitbc9ff7095fbfa1812e4f47dbf8531dec76cd0d00 (patch)
tree1e8deee7874598f2f827e62984ebb6383e049a1e /src/format.cc
parent4e8c9805bb0a68f7d4d20696f28db7d763e370e6 (diff)
downloadfork-ledger-bc9ff7095fbfa1812e4f47dbf8531dec76cd0d00.tar.gz
fork-ledger-bc9ff7095fbfa1812e4f47dbf8531dec76cd0d00.tar.bz2
fork-ledger-bc9ff7095fbfa1812e4f47dbf8531dec76cd0d00.zip
Introduced a new SCOPE expression terminal
Diffstat (limited to 'src/format.cc')
-rw-r--r--src/format.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/format.cc b/src/format.cc
index 93e7ea08..65c06488 100644
--- a/src/format.cc
+++ b/src/format.cc
@@ -225,7 +225,7 @@ format_t::element_t * format_t::parse_elements(const string& fmt,
expr_t::ptr_op_t colorize_op;
if (op->kind == expr_t::op_t::O_CONS) {
amount_op = op->left();
- colorize_op = op->right();
+ colorize_op = op->has_right() ? op->right() : NULL;
} else {
amount_op = op;
}