[grisbi-cvs] grisbi/src gsb_data_reconcile.c,1.19,1.20

Pierre Biava pbiava at users.sourceforge.net
Sat Nov 21 12:06:54 CET 2009


Update of /cvsroot/grisbi/grisbi/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv20449

Modified Files:
	gsb_data_reconcile.c 
Log Message:
fixed bug 738

Index: gsb_data_reconcile.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_data_reconcile.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- gsb_data_reconcile.c	8 May 2009 17:21:15 -0000	1.19
+++ gsb_data_reconcile.c	21 Nov 2009 11:06:52 -0000	1.20
@@ -754,13 +754,19 @@
 gint gsb_data_reconcile_cmp_int (struct_reconcile *reconcile_1,
                         struct_reconcile *reconcile_2)
 {
+    gint result;
+
     if ( ! reconcile_1 -> reconcile_final_date )
         return -1;
     else if ( ! reconcile_2 -> reconcile_final_date )
         return 1;
     else
-        return g_date_compare ( reconcile_1 -> reconcile_final_date,
+        result = g_date_compare ( reconcile_1 -> reconcile_final_date,
                            reconcile_2 -> reconcile_final_date );
+    if (result == 0 )
+        return reconcile_1 -> reconcile_number - reconcile_2 -> reconcile_number;
+    else
+        return result;
 }
 /* Local Variables: */
 /* c-basic-offset: 4 */



More information about the cvs mailing list