[gimp] Bug 585665 – Exporting to PSD with a blank text layer creates a corrupt file
- From: Sven Neumann <neo src gnome org>
 
- To: svn-commits-list gnome org
 
- Subject: [gimp] Bug 585665 – Exporting to PSD with a blank text layer creates a corrupt file
 
- Date: Thu, 16 Jul 2009 20:22:56 +0000 (UTC)
 
commit 48a6b0c59cbdfc07e904d7b000776b2ccc55504c
Author: Massimo Valentini <sixtysix inwind it>
Date:   Thu Jul 16 22:21:40 2009 +0200
    Bug 585665 â?? Exporting to PSD with a blank text layer creates a corrupt file
    
    Use write_gchar() to write an empty string, not write_gint16().
 plug-ins/file-psd/psd-save.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/file-psd/psd-save.c b/plug-ins/file-psd/psd-save.c
index f29de09..a2dd761 100644
--- a/plug-ins/file-psd/psd-save.c
+++ b/plug-ins/file-psd/psd-save.c
@@ -416,7 +416,7 @@ write_pascalstring (FILE        *fd,
     }
   else
     {
-      write_gint16 (fd, 0, why);
+      write_gchar (fd, 0, why);
     }
 
   /* If total length (length byte + content) is not a multiple of PADDING,
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]