git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some bugfixes around -z.
[swftools.git]
/
pdf2swf
/
xpdf
/
FoFiType1C.cc
diff --git
a/pdf2swf/xpdf/FoFiType1C.cc
b/pdf2swf/xpdf/FoFiType1C.cc
index
91a21ad
..
a1cec31
100644
(file)
--- a/
pdf2swf/xpdf/FoFiType1C.cc
+++ b/
pdf2swf/xpdf/FoFiType1C.cc
@@
-231,8
+231,11
@@
void FoFiType1C::convertToType1(char **newEncoding, GBool ascii,
(*outputFunc)(outputStream,
"0 1 255 {1 index exch /.notdef put} for\n", 40);
enc = newEncoding ? newEncoding : encoding;
(*outputFunc)(outputStream,
"0 1 255 {1 index exch /.notdef put} for\n", 40);
enc = newEncoding ? newEncoding : encoding;
+ if(!enc) {
+ fprintf(stderr, "convertToType1: Warning: No Encoding\n");
+ }
for (i = 0; i < 256; ++i) {
for (i = 0; i < 256; ++i) {
- if (enc[i]) {
+ if (enc && enc[i]) {
sprintf(buf, "dup %d /%s put\n", i, enc[i]);
(*outputFunc)(outputStream, buf, strlen(buf));
}
sprintf(buf, "dup %d /%s put\n", i, enc[i]);
(*outputFunc)(outputStream, buf, strlen(buf));
}