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:
4af346b
)
create GFXGlobalParams instead of GlobalParams
author
kramm
<kramm>
Sat, 20 Oct 2007 17:12:04 +0000
(17:12 +0000)
committer
kramm
<kramm>
Sat, 20 Oct 2007 17:12:04 +0000
(17:12 +0000)
lib/pdf/pdf.cc
patch
|
blob
|
history
diff --git
a/lib/pdf/pdf.cc
b/lib/pdf/pdf.cc
index
4bcf9b9
..
25a1770
100644
(file)
--- a/
lib/pdf/pdf.cc
+++ b/
lib/pdf/pdf.cc
@@
-318,10
+318,6
@@
static gfxdocument_t*pdf_open(const char*filename)
GString *fileName = new GString(filename);
GString *userPW;
GString *fileName = new GString(filename);
GString *userPW;
- // read config file
- if(!globalParams)
- globalParams = new GlobalParams("");
-
// open PDF file
if (userPassword && userPassword[0]) {
userPW = new GString(userPassword);
// open PDF file
if (userPassword && userPassword[0]) {
userPW = new GString(userPassword);
@@
-387,6
+383,10
@@
static gfxdocument_t*pdf_open(const char*filename)
gfxsource_t*gfxsource_pdf_create()
{
gfxsource_t*gfxsource_pdf_create()
{
+ if(!globalParams) {
+ globalParams = new GFXGlobalParams();
+ }
+
gfxsource_t*src = (gfxsource_t*)malloc(sizeof(gfxsource_t));
memset(src, 0, sizeof(gfxsource_t));
src->set_parameter = pdf_set_parameter;
gfxsource_t*src = (gfxsource_t*)malloc(sizeof(gfxsource_t));
memset(src, 0, sizeof(gfxsource_t));
src->set_parameter = pdf_set_parameter;