From 124cab4510bc4c34492521f342b231f093a00dd5 Mon Sep 17 00:00:00 2001 From: kramm Date: Mon, 27 May 2002 20:12:40 +0000 Subject: [PATCH] initialize globalParams. Otherwise, xpdf segfaults. --- pdf2swf/SWFOutputDev.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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]) { -- 1.7.10.4