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:
b77cdae
)
fixed treatment of "launch" links without params
author
kramm
<kramm>
Fri, 6 Jan 2006 20:39:53 +0000
(20:39 +0000)
committer
kramm
<kramm>
Fri, 6 Jan 2006 20:39:53 +0000
(20:39 +0000)
pdf2swf/SWFOutputDev.cc
patch
|
blob
|
history
diff --git
a/pdf2swf/SWFOutputDev.cc
b/pdf2swf/SWFOutputDev.cc
index
871dbac
..
6bb12bb
100644
(file)
--- a/
pdf2swf/SWFOutputDev.cc
+++ b/
pdf2swf/SWFOutputDev.cc
@@
-1461,10
+1461,11
@@
void SWFOutputDev::startPage(int pageNum, GfxState *state, double crop_x1, doubl
void SWFOutputDev::drawLink(Link *link, Catalog *catalog)
{
void SWFOutputDev::drawLink(Link *link, Catalog *catalog)
{
- msg("<debug> drawlink\n");
double x1, y1, x2, y2, w;
gfxline_t points[5];
int x, y;
double x1, y1, x2, y2, w;
gfxline_t points[5];
int x, y;
+
+ msg("<debug> drawlink\n");
link->getRect(&x1, &y1, &x2, &y2);
cvtUserToDev(x1, y1, &x, &y);
link->getRect(&x1, &y1, &x2, &y2);
cvtUserToDev(x1, y1, &x, &y);
@@
-1562,7
+1563,9
@@
void SWFOutputDev::drawLink(Link *link, Catalog *catalog)
type = "Launch";
LinkLaunch*l = (LinkLaunch*)action;
GString * str = new GString(l->getFileName());
type = "Launch";
LinkLaunch*l = (LinkLaunch*)action;
GString * str = new GString(l->getFileName());
- str->append(l->getParams());
+ GString * params = l->getParams();
+ if(params)
+ str->append(params);
s = strdup(str->getCString());
delete str;
}
s = strdup(str->getCString());
delete str;
}
@@
-1588,6
+1591,7
@@
void SWFOutputDev::drawLink(Link *link, Catalog *catalog)
break;
}
}
break;
}
}
+
if(!s) s = strdup("-?-");
if(!linkinfo && (page || url))
if(!s) s = strdup("-?-");
if(!linkinfo && (page || url))