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:
John Ralls 2021-05-04 13:20:01 -07:00
parent 2b48fd375d
commit 18c72baddf

View File

@ -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)
{