If a transaction's entry has no journal pointer (and this can happen with
temporaries), reference session_t::current to get at the current report pointer.
This commit is contained in:
parent
7a6d416f3b
commit
450cdb2b6d
1 changed files with 7 additions and 1 deletions
|
|
@ -401,7 +401,13 @@ expr_t::ptr_op_t entry_t::lookup(const string& name)
|
||||||
return WRAP_FUNCTOR(get_wrapper<&get_payee>);
|
return WRAP_FUNCTOR(get_wrapper<&get_payee>);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (journal) {
|
||||||
|
assert(journal->owner == session_t::current);
|
||||||
return journal->owner->current_report->lookup(name);
|
return journal->owner->current_report->lookup(name);
|
||||||
|
} else {
|
||||||
|
return session_t::current->current_report->lookup(name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool entry_t::valid() const
|
bool entry_t::valid() const
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue