From: kramm Date: Fri, 26 Sep 2008 11:51:18 +0000 (+0000) Subject: allow type3 bitmaps of size 1*x or x*1 X-Git-Tag: buttons-working~37 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=53206a6ffa652bc3e867836c9c88e55a17ca0ebf allow type3 bitmaps of size 1*x or x*1 --- 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;