Skip to content

Commit f30520c

Browse files
committed
fix old CairoFontEngine.cc for new interface
1 parent 2aaa2ff commit f30520c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

3rdparty/poppler/git/CairoFontEngine.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,8 @@ CairoFreeTypeFont *CairoFreeTypeFont::create(GfxFont *gfxFont, XRef *xref,
421421
ref = *gfxFont->getID();
422422
fontType = gfxFont->getType();
423423

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

0 commit comments

Comments
 (0)