[gimp/gimp-2-6] 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/gimp-2-6] Bug 585665 – Exporting to PSD with a blank text layer creates a corrupt file
- Date: Thu, 16 Jul 2009 20:29:34 +0000 (UTC)
commit 3644e67bda4812fed1c72d2cb60b44bce387fb9e
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().
(cherry picked from commit 48a6b0c59cbdfc07e904d7b000776b2ccc55504c)
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 ec65639..195abd7 100644
--- a/plug-ins/file-psd/psd-save.c
+++ b/plug-ins/file-psd/psd-save.c
@@ -414,7 +414,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]