r18512 - gnucash/trunk/src/gnome - Fix an off by one error in gnc_ui_sx_loan_druid_create.

Mike Alexander mta at code.gnucash.org
Thu Dec 17 02:21:18 EST 2009


Author: mta
Date: 2009-12-17 02:21:18 -0500 (Thu, 17 Dec 2009)
New Revision: 18512
Trac: http://svn.gnucash.org/trac/changeset/18512

Modified:
   gnucash/trunk/src/gnome/druid-loan.c
Log:
Fix an off by one error in gnc_ui_sx_loan_druid_create.

Modified: gnucash/trunk/src/gnome/druid-loan.c
===================================================================
--- gnucash/trunk/src/gnome/druid-loan.c	2009-12-17 07:17:09 UTC (rev 18511)
+++ gnucash/trunk/src/gnome/druid-loan.c	2009-12-17 07:21:18 UTC (rev 18512)
@@ -436,7 +436,7 @@
                 GNCAccountType paymentFroms[] = { ACCT_TYPE_BANK, ACCT_TYPE_CASH,
 						  ACCT_TYPE_CREDIT, ACCT_TYPE_ASSET,
 						  ACCT_TYPE_LIABILITY };
-                int toLen = 2;
+                int toLen = 1;
                 GNCAccountType paymentTos[] = { ACCT_TYPE_EXPENSE };
 
                 liabilityAcct = NULL;



More information about the gnucash-changes mailing list