[grisbi-cvs] [SCM] grisbi branch, master, updated. upstream_version_0_9_1-61-g7befe24
Pierre Biava
nobody at users.sourceforge.net
Sun May 22 17:29:49 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 7befe24524d8d46e388279470605b8ac546014c6 (commit)
from 751791e2919e321d19436a922aebc5ccd09d501b (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 7befe24524d8d46e388279470605b8ac546014c6
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
(cherry picked from commit 189274c68716f07bf88e2a8e542f1758702320cb)
-----------------------------------------------------------------------
Changes:
diff --git a/src/gsb_data_transaction.c b/src/gsb_data_transaction.c
index be508f4..65a8714 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