* src/gnome-utils/dialog-transfer.c: during the dialog startup it

tries to build the transfer rate.  This crashes on Solaris because
	  during startup one commodity is still NULL when it tries to print
	  it.
	Fixes bug #121677


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9271 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2003-09-09 23:23:09 +00:00
parent 00c479b6a0
commit fb2f55460f
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2003-09-09 Derek Atkins <derek@ihtfp.com>
* src/gnome-utils/dialog-transfer.c: during the dialog startup it
tries to build the transfer rate. This crashes on Solaris because
during startup one commodity is still NULL when it tries to print
it.
Fixes bug #121677
2003-09-04 Derek Atkins <derek@ihtfp.com>
Apply Nigel Titley's patch to fix #103174:

View File

@ -838,6 +838,14 @@ gnc_xfer_dialog_update_conv_info (XferDialog *xferData)
from_mnemonic = gnc_commodity_get_mnemonic(xferData->from_commodity);
to_mnemonic = gnc_commodity_get_mnemonic(xferData->to_commodity);
/* On the theory that if we don't have a mnemonic then we don't
* have a commodity... On Solaris this crashes without a string.
* So, just leave now and wait for the second initialization to
* occur.
*/
if (!from_mnemonic || !to_mnemonic)
return;
// price = gnc_amount_edit_get_amount(GNC_AMOUNT_EDIT(xferData->price_edit));
price = gnc_xfer_dialog_compute_price(xferData);