[grisbi-cvs] [SCM] grisbi branch, master, updated. upstream_version_0_9_2-6-g5d328df

Philippe Delorme nobody at users.sourceforge.net
Tue Jun 7 19:29:19 CEST 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grisbi".

The branch, master has been updated
       via  5d328df351d4362c6258445557fe0d2f355c083e (commit)
      from  9845f1b9fb1301d4c29f31f680ea285a264461cf (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5d328df351d4362c6258445557fe0d2f355c083e
Author: Philippe Delorme <philippedelorme at users.sourceforge.net>
Date:   Tue Jun 7 19:26:38 2011 +0200

    Fix grisbi crash on startup (negative index - commit 3473764e42b3fab9b5075215d8fb6647a9e7ab00)

-----------------------------------------------------------------------

Changes:
diff --git a/src/gsb_transactions_list.c b/src/gsb_transactions_list.c
index c6c81dc..692714a 100644
--- a/src/gsb_transactions_list.c
+++ b/src/gsb_transactions_list.c
@@ -4495,7 +4495,10 @@ void gsb_transaction_list_set_visible_archived_button ( gboolean visible )
  * */
 gchar *gsb_transaction_list_get_titre_colonne_liste_ope ( gint element )
 {
-    return g_strdup ( gettext ( labels_titres_colonnes_liste_ope[element] ) );
+    if ( element < 0 )
+        return NULL;
+    else
+        return g_strdup ( gettext ( labels_titres_colonnes_liste_ope[element] ) );
 }
 
 


hooks/post-receive
-- 
grisbi


More information about the cvs mailing list