[grisbi-cvs] grisbi/src gsb_scheduler_list.c,1.59,1.60

Cedric Auger cedric_grisbi at users.sourceforge.net
Sun Apr 26 13:27:25 CEST 2009


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

Modified Files:
	gsb_scheduler_list.c 
Log Message:
fix several white line in breakdown scheduled

Index: gsb_scheduler_list.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_scheduler_list.c,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -d -r1.59 -r1.60
--- gsb_scheduler_list.c	5 Mar 2009 19:12:29 -0000	1.59
+++ gsb_scheduler_list.c	26 Apr 2009 11:27:22 -0000	1.60
@@ -744,9 +744,15 @@
 			     -1 );
 
 	/* if it's a split, we append a white line now */
-	if (gsb_data_scheduled_get_split_of_scheduled (scheduled_number))
-	    gsb_scheduler_list_append_new_scheduled ( gsb_data_scheduled_new_white_line (scheduled_number),
+	if (gsb_data_scheduled_get_split_of_scheduled (scheduled_number) && !virtual_transaction)
+	{
+	    gint white_line_number = gsb_data_scheduled_get_white_line (scheduled_number);
+
+	    if (white_line_number == -1)
+		white_line_number = gsb_data_scheduled_new_white_line (scheduled_number);
+	    gsb_scheduler_list_append_new_scheduled ( white_line_number,
 						      end_date );
+	}
 
 	/* if it's a split, we show only one time and color the background */
 	if ( mother_iter )
@@ -767,7 +773,6 @@
 	    end_date &&
 	    g_date_compare ( end_date, pGDateCurrent ) > 0 &&
 	    !mother_iter );
-
     if ( mother_iter )
 	gtk_tree_iter_free (mother_iter);
     return TRUE;



More information about the cvs mailing list