gimp r27680 - in trunk: . plug-ins/file-psd
- From: martinn svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r27680 - in trunk: . plug-ins/file-psd
- Date: Tue, 18 Nov 2008 19:54:46 +0000 (UTC)
Author: martinn
Date: Tue Nov 18 19:54:45 2008
New Revision: 27680
URL: http://svn.gnome.org/viewvc/gimp?rev=27680&view=rev
Log:
Bug 559239 â Error while loading psd-data
* plug-ins/file-psd/psd-layer-res-load.c (load_layer_resource):
Layer resource data should not be padded.
Modified:
trunk/ChangeLog
trunk/plug-ins/file-psd/psd-layer-res-load.c
Modified: trunk/plug-ins/file-psd/psd-layer-res-load.c
==============================================================================
--- trunk/plug-ins/file-psd/psd-layer-res-load.c (original)
+++ trunk/plug-ins/file-psd/psd-layer-res-load.c Tue Nov 18 19:54:45 2008
@@ -173,8 +173,6 @@
FILE *f,
GError **error)
{
- gint pad;
-
/* Set file position to start of layer resource data block */
if (fseek (f, res_a->data_start, SEEK_SET) < 0)
{
@@ -232,14 +230,8 @@
load_resource_unknown (res_a, lyr_a, f, error);
}
- /* Layer blocks are null padded to even length */
- if (res_a->data_len % 2 == 0)
- pad = 0;
- else
- pad = 1;
-
/* Set file position to end of layer resource block */
- if (fseek (f, res_a->data_start + res_a->data_len + pad, SEEK_SET) < 0)
+ if (fseek (f, res_a->data_start + res_a->data_len, SEEK_SET) < 0)
{
psd_set_error (feof (f), errno, error);
return -1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]