[gimp] plug-ins: don't check biClrUsed if bpp > 8 (in bug 697431)
- From: Téo Mazars <teom src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: don't check biClrUsed if bpp > 8 (in bug 697431)
- Date: Thu, 30 Jan 2014 19:36:23 +0000 (UTC)
commit 54f83a5ba273e45a9184f13d1f4b0f5697d56555
Author: Téo Mazars <teomazars gmail com>
Date: Thu Jan 30 20:31:26 2014 +0100
plug-ins: don't check biClrUsed if bpp > 8 (in bug 697431)
plug-ins/file-bmp/bmp-read.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/file-bmp/bmp-read.c b/plug-ins/file-bmp/bmp-read.c
index d029355..f6d4081 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"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]