mirror of https://github.com/GNOME/gimp.git
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:
parent
f357b2cde0
commit
9c7ff98375
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue