diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-07 05:53:40 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-07 05:53:40 -0400 |
commit | 9380d73646bcd79c4f24581b2212f684cea70138 (patch) | |
tree | 5eac7094c0bab29fa538c3976d68866d0b973fb1 /src | |
parent | df6b02b3ef908558f9640d45914267f14a84de87 (diff) | |
download | fork-ledger-9380d73646bcd79c4f24581b2212f684cea70138.tar.gz fork-ledger-9380d73646bcd79c4f24581b2212f684cea70138.tar.bz2 fork-ledger-9380d73646bcd79c4f24581b2212f684cea70138.zip |
The "note" expressions returns an empty string if there is no note.
Diffstat (limited to 'src')
-rw-r--r-- | src/item.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/item.cc b/src/item.cc index 4af37e89..700386af 100644 --- a/src/item.cc +++ b/src/item.cc @@ -143,7 +143,7 @@ namespace { } value_t get_note(item_t& item) { - return item.note ? string_value(*item.note) : value_t(false); + return string_value(item.note ? *item.note : empty_string); } value_t has_tag(call_scope_t& args) { |