From: kramm Date: Mon, 27 May 2002 20:12:40 +0000 (+0000) Subject: initialize globalParams. Otherwise, xpdf segfaults. X-Git-Tag: release-0-4-0~84 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=124cab4510bc4c34492521f342b231f093a00dd5;p=swftools.git initialize globalParams. Otherwise, xpdf segfaults. --- diff --git a/pdf2swf/SWFOutputDev.cc b/pdf2swf/SWFOutputDev.cc index d5a9c99..8f8b81b 100644 --- a/pdf2swf/SWFOutputDev.cc +++ b/pdf2swf/SWFOutputDev.cc @@ -40,6 +40,7 @@ #include "GfxState.h" #include "GfxFont.h" #include "FontFile.h" +#include "GlobalParams.h" //swftools header files #include "swfoutput.h" extern "C" { @@ -131,7 +132,7 @@ public: // Does this device use drawChar() or drawString()? virtual GBool useDrawChar(); - virtual GBool interpretType3Chars() {return false;} + virtual GBool interpretType3Chars() {return gFalse;} //----- initialization and control @@ -1425,7 +1426,7 @@ void pdfswf_init(char*filename, char*userPassword) //errorInit(); FIXME xpdf 1.01 // read config file - //initParams(xpdfConfigFile); FIXME xpdf 1.01 + globalParams = new GlobalParams(""); // open PDF file if (userPassword && userPassword[0]) {