Fix missing exchange rate dialog on purchasing stocks. Patch by Mike Alexander, bug#335101.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15879 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2007-04-14 09:24:15 +00:00
parent b1f84468ce
commit ea9c56e68c

View File

@ -1124,7 +1124,7 @@ gnc_split_register_handle_exchange (SplitRegister *reg, gboolean force_dialog)
* _not_ the blank split, then return FALSE -- this is a "special"
* gain/loss stock transaction.
*/
if (gnc_numeric_zero_p(exch_rate) && !force_dialog &&
if (gnc_numeric_zero_p(exch_rate) && !force_dialog && split &&
split != gnc_split_register_get_blank_split (reg))
return FALSE;