From 056776882126f777c8f8b76cb0f18c5a67b87a77 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Mon, 10 Sep 2007 13:37:39 +0000 Subject: [PATCH] applied patch from Nils Philippsen that fixes an endianess problem (bug 2007-09-10 Sven Neumann * plug-ins/common/psp.c: applied patch from Nils Philippsen that fixes an endianess problem (bug #475464). svn path=/trunk/; revision=23492 --- ChangeLog | 5 +++++ plug-ins/common/psp.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 28e594fbe8..04caa45c10 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-09-10 Sven Neumann + + * plug-ins/common/psp.c: applied patch from Nils Philippsen that + fixes an endianess problem (bug #475464). + 2007-09-10 Sven Neumann * plug-ins/common/lcms.c (lcms_drawable_transform): copy the alpha diff --git a/plug-ins/common/psp.c b/plug-ins/common/psp.c index 5d60a85d98..9d47b05a7c 100644 --- a/plug-ins/common/psp.c +++ b/plug-ins/common/psp.c @@ -1356,10 +1356,10 @@ read_tube_block (FILE *f, placement_mode = GUINT32_FROM_LE (placement_mode); selection_mode = GUINT32_FROM_LE (selection_mode); - for (i = 1; i < column_count; i++) - gimp_image_add_vguide (image_ID, (ia->width * i)/column_count); - for (i = 1; i < row_count; i++) - gimp_image_add_hguide (image_ID, (ia->height * i)/row_count); + for (i = 1; i < params.cols; i++) + gimp_image_add_vguide (image_ID, (ia->width * i)/params.cols); + for (i = 1; i < params.rows; i++) + gimp_image_add_hguide (image_ID, (ia->height * i)/params.rows); /* We use a parasite to pass in the tube (pipe) parameters in * case we will have any use of those, for instance in the gpb