[grisbi-cvs] grisbi/src gsb_transactions_list.c,1.166,1.167

Mickaël Remars mykeul at users.sourceforge.net
Sat Jun 6 17:44:33 CEST 2009


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

Modified Files:
	gsb_transactions_list.c 
Log Message:
Empty cheque numbers should not be displayed (as we we do with NULL ones)

Index: gsb_transactions_list.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_transactions_list.c,v
retrieving revision 1.166
retrieving revision 1.167
diff -u -d -r1.166 -r1.167
--- gsb_transactions_list.c	21 May 2009 21:58:55 -0000	1.166
+++ gsb_transactions_list.c	6 Jun 2009 15:44:31 -0000	1.167
@@ -809,14 +809,10 @@
 	    /* mise en place du no de chèque/virement */
 
 	case ELEMENT_CHQ:
-	    if ( gsb_data_transaction_get_method_of_payment_content ( transaction_number))
-		return ( g_strconcat ( "(",
-				       gsb_data_transaction_get_method_of_payment_content ( transaction_number),
-				       ")",
-				       NULL ));
-	    else
-		return ( NULL );
-	    break;
+      {
+        const gchar *value = gsb_data_transaction_get_method_of_payment_content ( transaction_number );
+	    return ( value && *value ) ? g_strconcat ( "(", value, ")", NULL ) : NULL;
+      }
     }
     return ( NULL );
 }



More information about the cvs mailing list