[grisbi-cvs] [SCM] grisbi branch, master, updated. upstream_version_0_7_4-98-g1852dbc

Pierre Biava nobody at users.sourceforge.net
Sun Nov 21 09:53:36 CET 2010


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  1852dbcb15674089795f8c60d40034486354cae2 (commit)
      from  e814c38773444d530372c64020b525e081b0fef8 (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 1852dbcb15674089795f8c60d40034486354cae2
Author: pbiava <pierre.biava at nerim.net>
Date:   Sun Nov 21 09:52:32 2010 +0100

    permanently fixes the bug 1197 .saves the form of the first account

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

Changes:
diff --git a/src/gsb_file_save.c b/src/gsb_file_save.c
index 2cdd4be..c19c215 100644
--- a/src/gsb_file_save.c
+++ b/src/gsb_file_save.c
@@ -959,6 +959,9 @@ gulong gsb_file_save_account_part ( gulong iterator,
                         gchar **file_content )
 {
     GSList *list_tmp;
+    gint first_account;
+
+    first_account = gsb_data_account_first_number ( );
 
     list_tmp = gsb_data_account_get_list_accounts ();
 
@@ -1032,10 +1035,10 @@ gulong gsb_file_save_account_part ( gulong iterator,
 	for ( k=0 ; k<MAX_HEIGHT ; k++ )
 	    for ( j=0 ; j<MAX_WIDTH ; j++ )
 		if ( form_organization )
-		{ 
+		{
 		    form_organization = g_strconcat ( first_string_to_free = form_organization,
 						      "-",
-						      second_string_to_free = utils_str_itoa ( gsb_data_form_get_value ( account_number,
+						      second_string_to_free = utils_str_itoa ( gsb_data_form_get_value ( first_account,
 															 j,
 															 k )),
 						      NULL );
@@ -1043,7 +1046,7 @@ gulong gsb_file_save_account_part ( gulong iterator,
 		    g_free (second_string_to_free);
 		}
 		else
-		    form_organization = utils_str_itoa (gsb_data_form_get_value ( account_number,
+		    form_organization = utils_str_itoa (gsb_data_form_get_value ( first_account,
 										  j,
 										  k ));
 
@@ -1055,14 +1058,14 @@ gulong gsb_file_save_account_part ( gulong iterator,
 	    {
 		form_columns_width = g_strconcat ( first_string_to_free = form_columns_width,
 						   "-",
-						   second_string_to_free = utils_str_itoa ( gsb_data_form_get_width_column ( account_number,
+						   second_string_to_free = utils_str_itoa ( gsb_data_form_get_width_column ( first_account,
 															     k )),
 						   NULL );
 		g_free (first_string_to_free);
 		g_free (second_string_to_free);
 	    }
 	    else
-		form_columns_width = utils_str_itoa ( gsb_data_form_get_width_column ( account_number,
+		form_columns_width = utils_str_itoa ( gsb_data_form_get_width_column ( first_account,
 										       k ));
 
 	/* set the reals */


hooks/post-receive
-- 
grisbi


More information about the cvs mailing list