[grisbi-cvs] [SCM] grisbi branch, master, updated. upstream_version_0_9_5-58-g3303760

Pierre Biava nobody at users.sourceforge.net
Sat Jan 28 20:39:15 CET 2012


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  33037602986c8d03d2d3faa89192c0168bfe5fa7 (commit)
       via  ab53f0ca35299a62ecd785076069f0cf976851d2 (commit)
      from  a4d09e0ac67765b4aa55dd7988e6cc9dab0a7495 (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 33037602986c8d03d2d3faa89192c0168bfe5fa7
Author: pbiava <pierre.biava at nerim.net>
Date:   Sat Jan 28 19:18:05 2012 +0100

    transaction_list.c: fixes a crash when the Credit or Debit columns do not exist

commit ab53f0ca35299a62ecd785076069f0cf976851d2
Author: pbiava <pierre.biava at nerim.net>
Date:   Sat Jan 28 17:43:06 2012 +0100

    bet_tab.c: Add a label for check button

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

Changes:
diff --git a/src/bet_tab.c b/src/bet_tab.c
index d4c76d3..98381e1 100644
--- a/src/bet_tab.c
+++ b/src/bet_tab.c
@@ -553,7 +553,7 @@ GtkWidget *bet_array_create_page ( void )
     g_object_set_data ( G_OBJECT ( account_page ), "bet_initial_date", initial_date );
     gtk_box_pack_start ( GTK_BOX (hbox), initial_date, FALSE, FALSE, 0 );
 
-    widget = gtk_check_button_new ( );
+    widget = gtk_check_button_new_with_label ( _("Automatic") );
     gtk_toggle_button_set_active ( GTK_TOGGLE_BUTTON ( widget ), FALSE );
     gtk_widget_set_tooltip_text ( GTK_WIDGET ( widget ),
                         _("Check the box to automatically change start date") );
diff --git a/src/transaction_list.c b/src/transaction_list.c
index db6b96c..46fd461 100644
--- a/src/transaction_list.c
+++ b/src/transaction_list.c
@@ -340,7 +340,8 @@ void transaction_list_append_archive ( gint archive_store_number )
     else
         amount_col = find_element_col (ELEMENT_CREDIT);
 
-    newrecord -> visible_col[amount_col] = utils_real_get_string_with_currency (
+    if ( amount_col > 0 )
+        newrecord -> visible_col[amount_col] = utils_real_get_string_with_currency (
                         gsb_data_archive_store_get_balance (archive_store_number),
                         gsb_data_account_get_currency (
                         gsb_data_archive_store_get_account_number ( archive_store_number ) ),


hooks/post-receive
-- 
grisbi


More information about the cvs mailing list