mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-21 20:50:07 +00:00
fix old CairoFontEngine.cc for new interface
This commit is contained in:
parent
2aaa2ffb1e
commit
f30520c217
3
3rdparty/poppler/git/CairoFontEngine.cc
vendored
3
3rdparty/poppler/git/CairoFontEngine.cc
vendored
@ -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)");
|
||||
|
Loading…
Reference in New Issue
Block a user