[grisbi-cvs] [SCM] grisbi branch, grisbi-0.8.x, updated. upstream_version_0_8_5-10-g189274c

Pierre Biava nobody at users.sourceforge.net
Sun May 22 08:50:09 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, grisbi-0.8.x has been updated
       via  189274c68716f07bf88e2a8e542f1758702320cb (commit)
      from  f9b98d127aea2c48f144620b378679d7d74083e1 (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 189274c68716f07bf88e2a8e542f1758702320cb
Author: pbiava <pierre.biava at nerim.net>
Date:   Sun May 22 08:48:38 2011 +0200

    corrects a problem of calculating the balance after deletion of two archives

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

Changes:
diff --git a/src/gsb_data_transaction.c b/src/gsb_data_transaction.c
index 7144241..bea3199 100644
--- a/src/gsb_data_transaction.c
+++ b/src/gsb_data_transaction.c
@@ -50,6 +50,7 @@
 #include "gsb_real.h"
 #include "utils_str.h"
 #include "structures.h"
+#include "erreur.h"
 /*END_INCLUDE*/
 
 
@@ -1548,25 +1549,17 @@ gboolean gsb_data_transaction_set_archive_number ( gint transaction_number,
     transaction = gsb_data_transaction_get_transaction_by_no ( transaction_number);
 
     if ( !transaction )
-    return FALSE;
+        return FALSE;
 
-    /* we choose to set or not the transaction to the transactions_list
-     * if the archive_number of the transaction is 0 for now, it's already in that list,
+    /* if the archive_number of the transaction is 0 for now, it's already in that list,
      * so we mustn't add it,
-     * else, according to the new value, we remove it or append it */
-    if (transaction -> archive_number)
-    {
-    /* that transaction was an archive, so it's only in the complete_transactions_list */
-    if  (!archive_number)
-        /* the transaction was an archive, and we transform it as non archived transaction,
-         * so we add it into the transactions_list */
-        transactions_list = g_slist_append ( transactions_list, transaction );
-    }
-    else
+     * else, according to the new value, we remove it
+    */
+    if ( !transaction -> archive_number )
     {
         /* the transaction was not an archive, so it's into the 2 lists,
          * if we transform it as an archive, we remove it from the transactions_list */
-        if (archive_number)
+        if ( archive_number )
             transactions_list = g_slist_remove ( transactions_list, transaction );
     }
 


hooks/post-receive
-- 
grisbi


More information about the cvs mailing list