mirror of https://github.com/GNOME/gimp.git
plug-ins: don't check biClrUsed if bpp > 8 (in bug 697431)
This commit is contained in:
parent
fcecafa479
commit
54f83a5ba2
|
@ -487,7 +487,7 @@ ReadBMP (const gchar *name,
|
|||
goto out;
|
||||
}
|
||||
|
||||
if (Bitmap_Head.biClrUsed > 256)
|
||||
if (Bitmap_Head.biClrUsed > 256 && Bitmap_Head.biBitCnt <= 8)
|
||||
{
|
||||
g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
|
||||
_("'%s' is not a valid BMP file"),
|
||||
|
|
Loading…
Reference in New Issue