Commit 9e277624 authored by Enrico Ros's avatar Enrico Ros

applying patch_084

svn path=/branches/kpdf/annotations/kdegraphics/kpdf/; revision=425040
parent c313465c
......@@ -187,9 +187,14 @@ void FoFiType1::parse() {
}
}
} else {
if (strtok(buf, " \t") &&
(p = strtok(NULL, " \t\n\r")) && !strcmp(p, "def")) {
break;
p = strtok(buf, " \t\n\r");
if (p)
{
if (!strcmp(p, "def")) break;
if (!strcmp(p, "readonly")) break;
// the spec does not says this but i'm mantaining old xpdf behaviour that accepts "foo def" as end of the encoding array
p = strtok(buf, " \t\n\r");
if (p && !strcmp(p, "def")) break;
}
}
line = line1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment