Bug #663638 - Posting Invoices asks for curency conversion for blank

lines
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21536 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens
2011-11-08 19:04:00 +00:00
parent 168ecd6c92
commit 3f73ffdb20

View File

@@ -755,7 +755,8 @@ gnc_invoice_window_postCB (GtkWidget *widget, gpointer data)
this_acc = (reverse ? gncEntryGetInvAccount (entry) :
gncEntryGetBillAccount (entry));
if (!gnc_commodity_equal(gncInvoiceGetCurrency (invoice), xaccAccountGetCommodity(this_acc)))
if (this_acc &&
!gnc_commodity_equal (gncInvoiceGetCurrency (invoice), xaccAccountGetCommodity (this_acc)))
{
GNCPrice *convprice;