[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
- Previous message: [grisbi-cvs] grisbi/src gsb_data_account.c, 1.79, 1.80 gsb_data_bank.c, 1.10, 1.11 gsb_data_payee.c, 1.47, 1.48 gsb_data_report.c, 1.29, 1.30 gsb_data_report_text_comparison.c, 1.13, 1.14 gsb_data_scheduled.c, 1.26, 1.27 gsb_data_transaction.c, 1.62, 1.63 gsb_file.c, 1.52, 1.53 gsb_file_save.c, 1.127, 1.128
- Next message: [grisbi-cvs] grisbi/src gsb_data_account.c,1.80,1.81
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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 );
}
- Previous message: [grisbi-cvs] grisbi/src gsb_data_account.c, 1.79, 1.80 gsb_data_bank.c, 1.10, 1.11 gsb_data_payee.c, 1.47, 1.48 gsb_data_report.c, 1.29, 1.30 gsb_data_report_text_comparison.c, 1.13, 1.14 gsb_data_scheduled.c, 1.26, 1.27 gsb_data_transaction.c, 1.62, 1.63 gsb_file.c, 1.52, 1.53 gsb_file_save.c, 1.127, 1.128
- Next message: [grisbi-cvs] grisbi/src gsb_data_account.c,1.80,1.81
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cvs
mailing list