From f30520c217a017dcb080bda8c8c2240309aeb83e Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Wed, 22 Jul 2015 17:23:19 +0800 Subject: [PATCH] fix old CairoFontEngine.cc for new interface --- 3rdparty/poppler/git/CairoFontEngine.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/3rdparty/poppler/git/CairoFontEngine.cc b/3rdparty/poppler/git/CairoFontEngine.cc index 3b7b69a..4571b7f 100644 --- a/3rdparty/poppler/git/CairoFontEngine.cc +++ b/3rdparty/poppler/git/CairoFontEngine.cc @@ -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)");