diff options
author | John Wiegley <johnw@newartisans.com> | 2012-02-21 01:45:36 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-02-21 01:45:36 -0600 |
commit | 902673a199ccc1716c93543d77bd782cbbe25ead (patch) | |
tree | e44cd8458af9f8e81a04f3effe8e3885d17b1900 /src/format.cc | |
parent | 4e8c9805bb0a68f7d4d20696f28db7d763e370e6 (diff) | |
parent | 1837e323916c7479623bb61e479407b85edee562 (diff) | |
download | fork-ledger-902673a199ccc1716c93543d77bd782cbbe25ead.tar.gz fork-ledger-902673a199ccc1716c93543d77bd782cbbe25ead.tar.bz2 fork-ledger-902673a199ccc1716c93543d77bd782cbbe25ead.zip |
Merge branch 't/scopes' into next
Diffstat (limited to 'src/format.cc')
-rw-r--r-- | src/format.cc | 2 |
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; } |