Fix crash if font loading fails.

SVN revision: 33048
This commit is contained in:
Kim Woelders 2007-12-08 15:17:42 +00:00
parent 6acae2a015
commit 5c524f0840
1 changed files with 2 additions and 3 deletions

View File

@ -754,8 +754,7 @@ TextStateLoadFont(TextState * ts)
goto fallback;
}
#endif
ts->ops = fhp->ops;
ts->ops->Load(ts, name);
if (fhp->ops->Load(ts, name) == 0)
goto done;
}
fallback: