plug-ins: don't check biClrUsed if bpp > 8 (in bug 697431)

This commit is contained in:
Téo Mazars 2014-01-30 20:31:26 +01:00
parent fcecafa479
commit 54f83a5ba2
1 changed files with 1 additions and 1 deletions

View File

@ -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"),