[grisbi-cvs] [SCM] grisbi branch, grisbi-0.8.x, updated. upstream_version_0_8_3-2-g152e69f

Pierre Biava nobody at users.sourceforge.net
Thu Mar 10 20:19:07 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, grisbi-0.8.x has been updated
       via  152e69f76a49fcf156d19ec1fbf25029bd1d08ec (commit)
      from  c7053e5474a9a0f0374c642c9418895444d32bf4 (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 152e69f76a49fcf156d19ec1fbf25029bd1d08ec
Author: pbiava <pierre.biava at nerim.net>
Date:   Thu Mar 10 20:18:10 2011 +0100

    fixes a bug that corrupts the file grisbi when saving in certain circumstances

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

Changes:
diff --git a/src/gsb_file_save.c b/src/gsb_file_save.c
index 2274d70..0c9419f 100644
--- a/src/gsb_file_save.c
+++ b/src/gsb_file_save.c
@@ -2787,14 +2787,14 @@ gulong gsb_file_save_logo_part ( gulong iterator,
     gchar * str64;
 
     pixbuf = gsb_select_icon_get_logo_pixbuf ( );
-    if ( !pixbuf )
-        return 0;
-
-    str64 = gsb_select_icon_create_chaine_base64_from_pixbuf ( pixbuf );
+    if ( pixbuf )
+    {
+        str64 = gsb_select_icon_create_chaine_base64_from_pixbuf ( pixbuf );
 
-    new_string = g_markup_printf_escaped ( "\t<Logo\n"
+        new_string = g_markup_printf_escaped ( "\t<Logo\n"
                         "\t\tImage=\"%s\" />\n", 
                         my_safe_null_str(str64) );
+    }
 
     iterator = gsb_file_save_append_part ( iterator,
                         length_calculated,


hooks/post-receive
-- 
grisbi


More information about the cvs mailing list