Assert that the invoice type is never an unknown type.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21412 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens
2011-10-10 15:31:21 +00:00
parent 012ab52a07
commit 825538a85e

View File

@@ -1165,9 +1165,12 @@ gboolean gncInvoiceAmountPositive (const GncInvoice *invoice)
case GNC_INVOICE_CUST_CREDIT_NOTE:
case GNC_INVOICE_VEND_INVOICE:
case GNC_INVOICE_EMPL_INVOICE:
case GNC_INVOICE_UNDEFINED:
return FALSE;
case GNC_INVOICE_UNDEFINED:
default:
/* Should never be reached.
* If it is, perhaps a new value is added to GncInvoiceType ? */
g_assert_not_reached();
return FALSE;
}
}