X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpdf%2FGFXOutputDev.cc;h=3d5725d4b18f276722eb37740bfb371bd259d0f6;hb=53206a6ffa652bc3e867836c9c88e55a17ca0ebf;hp=863f46431dac083a302fd87914531970b7fd8ae6;hpb=d75c1277468b4045fc96b44bcf4ffd058744ee0f;p=swftools.git 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;