mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Addendum 5c5b627cb1
: handle blank split with null account
This commit is contained in:
parent
24fdecaca7
commit
292adf69d8
@ -374,7 +374,8 @@ gnc_split_register_check_account (SplitRegister *reg,
|
||||
static inline bool
|
||||
is_trading_split (Split* split)
|
||||
{
|
||||
return xaccAccountGetType (xaccSplitGetAccount (split)) == ACCT_TYPE_TRADING;
|
||||
auto acct{xaccSplitGetAccount (split)};
|
||||
return GNC_IS_ACCOUNT (acct) && xaccAccountGetType (acct) == ACCT_TYPE_TRADING;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user