fixed pattern depth check to allow RGBA patterns again. Removed trailing

2003-07-15  Michael Natterer  <mitch@gimp.org>

	* app/core/gimppattern.c (gimp_pattern_load): fixed pattern depth
	check to allow RGBA patterns again. Removed trailing whitespace.
This commit is contained in:
Michael Natterer 2003-07-14 23:30:18 +00:00 committed by Michael Natterer
parent f357b2cde0
commit 9c7ff98375
3 changed files with 23 additions and 18 deletions

View File

@ -1,3 +1,8 @@
2003-07-15 Michael Natterer <mitch@gimp.org>
* app/core/gimppattern.c (gimp_pattern_load): fixed pattern depth
check to allow RGBA patterns again. Removed trailing whitespace.
2003-07-14 Sven Neumann <sven@gimp.org>
* libgimpcolor/Makefile.am

View File

@ -374,12 +374,12 @@ gimp_pattern_load (const gchar *filename,
}
/* Check for supported bit depths */
if (header.bytes <1 || header.bytes > 3)
if (header.bytes < 1 || header.bytes > 4)
{
g_set_error (error, GIMP_DATA_ERROR, GIMP_DATA_ERROR_READ,
_("Unsupported pattern depth %d\n"
"in file '%s'.\n"
"GIMP Patterns must be GRAY or RGB.\n"),
"GIMP Patterns must be GRAY or RGB."),
header.bytes, filename);
goto error;
}

View File

@ -374,12 +374,12 @@ gimp_pattern_load (const gchar *filename,
}
/* Check for supported bit depths */
if (header.bytes <1 || header.bytes > 3)
if (header.bytes < 1 || header.bytes > 4)
{
g_set_error (error, GIMP_DATA_ERROR, GIMP_DATA_ERROR_READ,
_("Unsupported pattern depth %d\n"
"in file '%s'.\n"
"GIMP Patterns must be GRAY or RGB.\n"),
"GIMP Patterns must be GRAY or RGB."),
header.bytes, filename);
goto error;
}