summaryrefslogtreecommitdiff
path: root/gnucash.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gnucash.cc')
-rw-r--r--gnucash.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/gnucash.cc b/gnucash.cc
index 584a4eab..4b76fcb3 100644
--- a/gnucash.cc
+++ b/gnucash.cc
@@ -162,12 +162,16 @@ static void dataHandler(void *userData, const char *s, int len)
}
case COMM_SYM:
- if (curr_comm)
+ if (curr_comm) {
curr_comm->symbol = std::string(s, len);
- else if (curr_account)
+ curr_comm->check_symbol();
+ }
+ else if (curr_account) {
curr_account_comm = commodity_t::find_commodity(std::string(s, len));
- else if (curr_entry)
+ }
+ else if (curr_entry) {
entry_comm = commodity_t::find_commodity(std::string(s, len));
+ }
break;
case COMM_NAME: