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.
pull/996/head
John Ralls 5 years ago
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…
Cancel
Save