[grisbi-cvs] grisbi/src gsb_form_scheduler.c,1.37,1.38

Pierre Biava pbiava at users.sourceforge.net
Sat Jan 30 19:36:22 CET 2010


Update of /cvsroot/grisbi/grisbi/src
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv21498

Modified Files:
	gsb_form_scheduler.c 
Log Message:
fixed bug 890

Index: gsb_form_scheduler.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_form_scheduler.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- gsb_form_scheduler.c	23 Jan 2010 13:46:12 -0000	1.37
+++ gsb_form_scheduler.c	30 Jan 2010 18:36:18 -0000	1.38
@@ -312,6 +312,7 @@
     GSList *content_list;
     gboolean is_split;
     GtkWidget *category_entry;
+    const gchar *tmp_str;
     gint new_account_number;
 
     //~ devel_debug (NULL);
@@ -320,11 +321,15 @@
 
     /* need to check first if split (see later) */
     category_entry = gsb_form_widget_get_widget (TRANSACTION_FORM_CATEGORY);
+    tmp_str = gtk_combofix_get_text ( GTK_COMBOFIX ( category_entry) );
     if (category_entry
 	&&
 	gsb_form_widget_check_empty (GTK_COMBOFIX (category_entry) -> entry)
 	&&
-	!strcmp (gtk_combofix_get_text (GTK_COMBOFIX (category_entry)), _("Split of transaction")))
+    tmp_str
+    && strlen ( tmp_str ) > 0
+    &&
+	!strcmp ( tmp_str, _("Split of transaction") ) )
 	/* ok it's a split */
 	is_split = TRUE;
     else



More information about the cvs mailing list