diff --git a/ChangeLog b/ChangeLog index ad227194c7..3160b72369 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-01-22 Sven Neumann + + * plug-ins/common/pcx.c: corrected check of the bytesperline field + which caused monochrome PCX images to be rejected (bug #510658). + 2008-01-22 Sven Neumann * app/core/gimp.[ch]: added new function gimp_use_gegl(). diff --git a/plug-ins/common/pcx.c b/plug-ins/common/pcx.c index a9d1d7b0fe..7fd2ce0596 100644 --- a/plug-ins/common/pcx.c +++ b/plug-ins/common/pcx.c @@ -381,7 +381,7 @@ load_image (const gchar *filename) g_message (_("Unsupported or invalid image height: %d"), height); return -1; } - if (bytesperline < width) + if (bytesperline < (width * pcx_header.bpp) / 8) { g_message (_("Invalid number of bytes per line in PCX header")); return -1;