fixed problem introduced by the use of an enum for the subsampling factor.

2008-10-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-jpeg/jpeg.c (run): fixed problem introduced by 
the
	use of an enum for the subsampling factor. Fixes bug #554890.


svn path=/trunk/; revision=27129
This commit is contained in:
Sven Neumann 2008-10-04 22:46:42 +00:00 committed by Sven Neumann
parent 097e85de0c
commit 46475f6ab1
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-10-05 Sven Neumann <sven@gimp.org>
* plug-ins/file-jpeg/jpeg.c (run): fixed problem introduced by the
use of an enum for the subsampling factor. Fixes bug #554890.
2008-10-04 Michael Natterer <mitch@gimp.org>
* plug-ins/common/web-browser.c: return errors via return_vals

View File

@ -442,9 +442,11 @@ run (const gchar *name,
}
if (orig_subsmp == JPEG_SUPSAMPLING_1x1_1x1_1x1 ||
(orig_subsmp > JPEG_SUPSAMPLING_1x1_1x1_1x1 &&
((gint) orig_subsmp > 0 &&
jsvals.subsmp == JPEG_SUPSAMPLING_1x1_1x1_1x1))
jsvals.subsmp = orig_subsmp;
{
jsvals.subsmp = orig_subsmp;
}
}
break;
}