Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

Commit

Permalink
fix old CairoFontEngine.cc for new interface
Browse files Browse the repository at this point in the history
  • Loading branch information
coolwanglu committed Jul 22, 2015
1 parent 2aaa2ff commit f30520c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 3rdparty/poppler/git/CairoFontEngine.cc
Expand Up @@ -421,7 +421,8 @@ CairoFreeTypeFont *CairoFreeTypeFont::create(GfxFont *gfxFont, XRef *xref,
ref = *gfxFont->getID();
fontType = gfxFont->getType();

if (!(fontLoc = gfxFont->locateFont(xref, gFalse))) {
// pdf2htmlEX: changed gFlase to nullptr
if (!(fontLoc = gfxFont->locateFont(xref, nullptr))) {
error(errSyntaxError, -1, "Couldn't find a font for '{0:s}'",
gfxFont->getName() ? gfxFont->getName()->getCString()
: "(unnamed)");
Expand Down

0 comments on commit f30520c

Please sign in to comment.