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:
9d6555d
)
fixed crash if a standard font wasn't found.
author
kramm
<kramm>
Sun, 28 Nov 2004 13:52:39 +0000
(13:52 +0000)
committer
kramm
<kramm>
Sun, 28 Nov 2004 13:52:39 +0000
(13:52 +0000)
pdf2swf/SWFOutputDev.cc
patch
|
blob
|
history
diff --git
a/pdf2swf/SWFOutputDev.cc
b/pdf2swf/SWFOutputDev.cc
index
eee568d
..
770af0c
100644
(file)
--- a/
pdf2swf/SWFOutputDev.cc
+++ b/
pdf2swf/SWFOutputDev.cc
@@
-1449,6
+1449,10
@@
char* SWFOutputDev::substituteFont(GfxFont*gfxFont, char* oldname)
fontname = "Times-Roman";
}
filename = searchFont(fontname);
+ if(!filename) {
+ msg("<error> Couldn't find font %s- did you install the default fonts?");
+ return 0;
+ }
if(substitutepos>=sizeof(substitutesource)/sizeof(char*)) {
msg("<fatal> Too many fonts in file.");