[grisbi-cvs] [SCM] grisbi branch, master, updated. upstream_version_0_9_4-113-g274dd43

Pierre Biava nobody at users.sourceforge.net
Fri Dec 9 06:29:44 CET 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  274dd4361e247c44792697f1e1684c98bc87cd35 (commit)
      from  3ed5dbfd3acf905ff0a296f0f828c9eee6ff61f9 (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 274dd4361e247c44792697f1e1684c98bc87cd35
Author: pbiava <pierre.biava at nerim.net>
Date:   Fri Dec 9 06:28:25 2011 +0100

    Fixed a bug when a category name does not exist

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

Changes:
diff --git a/src/bet_graph.c b/src/bet_graph.c
index c730340..e5b00c0 100644
--- a/src/bet_graph.c
+++ b/src/bet_graph.c
@@ -533,7 +533,7 @@ gboolean bet_graph_populate_sectors_by_hist_data ( struct_bet_graph_data *self )
                         -1 );
 
             type_infos = bet_data_get_div_type ( div );
-            if ( self -> type_infos == -1 || type_infos == self -> type_infos )
+            if ( desc && ( self -> type_infos == -1 || type_infos == self -> type_infos ) )
             {
                 strncpy ( &libelle_division[self -> nbre_elemnts * TAILLE_MAX_LIBELLE], desc, TAILLE_MAX_LIBELLE );
                 tab_montant_division[self -> nbre_elemnts] = utils_str_strtod ( ( amount == NULL) ? "0" : amount, NULL );


hooks/post-receive
-- 
grisbi


More information about the cvs mailing list