diff --git a/plug-ins/file-bmp/bmp-read.c b/plug-ins/file-bmp/bmp-read.c index d0293559e8..f6d4081979 100644 --- a/plug-ins/file-bmp/bmp-read.c +++ b/plug-ins/file-bmp/bmp-read.c @@ -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"),