git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4040dab
)
initialize globalParams. Otherwise, xpdf segfaults.
author
kramm
<kramm>
Mon, 27 May 2002 20:12:40 +0000
(20:12 +0000)
committer
kramm
<kramm>
Mon, 27 May 2002 20:12:40 +0000
(20:12 +0000)
pdf2swf/SWFOutputDev.cc
patch
|
blob
|
history
diff --git
a/pdf2swf/SWFOutputDev.cc
b/pdf2swf/SWFOutputDev.cc
index
d5a9c99
..
8f8b81b
100644
(file)
--- a/
pdf2swf/SWFOutputDev.cc
+++ b/
pdf2swf/SWFOutputDev.cc
@@
-40,6
+40,7
@@
#include "GfxState.h"
#include "GfxFont.h"
#include "FontFile.h"
#include "GfxState.h"
#include "GfxFont.h"
#include "FontFile.h"
+#include "GlobalParams.h"
//swftools header files
#include "swfoutput.h"
extern "C" {
//swftools header files
#include "swfoutput.h"
extern "C" {
@@
-131,7
+132,7
@@
public:
// Does this device use drawChar() or drawString()?
virtual GBool useDrawChar();
// Does this device use drawChar() or drawString()?
virtual GBool useDrawChar();
- virtual GBool interpretType3Chars() {return false;}
+ virtual GBool interpretType3Chars() {return gFalse;}
//----- initialization and control
//----- initialization and control
@@
-1425,7
+1426,7
@@
void pdfswf_init(char*filename, char*userPassword)
//errorInit(); FIXME xpdf 1.01
// read config file
//errorInit(); FIXME xpdf 1.01
// read config file
- //initParams(xpdfConfigFile); FIXME xpdf 1.01
+ globalParams = new GlobalParams("");
// open PDF file
if (userPassword && userPassword[0]) {
// open PDF file
if (userPassword && userPassword[0]) {