From: Matthias Kramm Date: Mon, 2 Feb 2009 19:04:56 +0000 (+0100) Subject: fixed segfault with -s multiply X-Git-Tag: release-0-9-0~173 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=d01c8ea34b86327f8cbe59e815235d1a6a9c98ae;p=swftools.git fixed segfault with -s multiply --- diff --git a/lib/pdf/pdf.cc b/lib/pdf/pdf.cc index d3f8b4d..ef5f4f0 100644 --- a/lib/pdf/pdf.cc +++ b/lib/pdf/pdf.cc @@ -57,7 +57,6 @@ typedef struct _pdf_doc_internal InfoOutputDev*info; pdf_page_info_t*pages; - gfxdevice_t* middev; char*filename; /* page map */ @@ -171,7 +170,7 @@ static void render2(gfxpage_t*page, gfxdevice_t*dev, int x,int y, int x1,int y1, gfxdevice_rescale_init(middev, 0x00000000, 0, 0, 1.0 / multiply); gfxdevice_rescale_setdevice(middev, dev); middev->setparameter(middev, "protect", "1"); - dev = pi->middev; + dev = middev; } if(!pi) {