mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Don't bother scrubbing for orphans if there's no transaction currency.
If it found one it would try to create an orphan account with no currency which will crash later.
This commit is contained in:
parent
2b48fd375d
commit
18c72baddf
@ -110,6 +110,7 @@ TransScrubOrphansFast (Transaction *trans, Account *root)
|
||||
|
||||
if (!trans) return;
|
||||
g_return_if_fail (root);
|
||||
g_return_if_fail (trans->common_currency);
|
||||
|
||||
for (node = trans->splits; node; node = node->next)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user