From 53206a6ffa652bc3e867836c9c88e55a17ca0ebf Mon Sep 17 00:00:00 2001 From: kramm Date: Fri, 26 Sep 2008 11:51:18 +0000 Subject: [PATCH] allow type3 bitmaps of size 1*x or x*1 --- lib/pdf/GFXOutputDev.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pdf/GFXOutputDev.cc b/lib/pdf/GFXOutputDev.cc index 863f464..3d5725d 100644 --- a/lib/pdf/GFXOutputDev.cc +++ b/lib/pdf/GFXOutputDev.cc @@ -1960,7 +1960,7 @@ void GFXOutputDev::updateFont(GfxState *state) unsigned char* antialize(unsigned char*data, int width, int height, int newwidth, int newheight, int palettesize) { - if((newwidth<2 || newheight<2) || + if((newwidth<1 || newheight<1) || (width<=newwidth || height<=newheight)) return 0; unsigned char*newdata; -- 1.7.10.4