r24886 by jghali - Small update vs latest code in poppler

scribus-commit scribus-commit at lists.scribus.net
Thu Feb 3 19:46:58 UTC 2022


Author: jghali
Date: Thu Feb  3 19:46:58 2022
New Revision: 24886

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24886
Log:
Small update vs latest code in poppler

Modified:
    branches/Version15x/Scribus/scribus/plugins/import/pdf/slaoutput.cpp

Modified: branches/Version15x/Scribus/scribus/plugins/import/pdf/slaoutput.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24886&path=/branches/Version15x/Scribus/scribus/plugins/import/pdf/slaoutput.cpp
==============================================================================
--- branches/Version15x/Scribus/scribus/plugins/import/pdf/slaoutput.cpp	(original)
+++ branches/Version15x/Scribus/scribus/plugins/import/pdf/slaoutput.cpp	Thu Feb  3 19:46:58 2022
@@ -3072,10 +3072,10 @@
 		delete id;
 	else
 	{
-		if (!(fontLoc = gfxFont->locateFont(xref, nullptr)))
-		{
-			error(errSyntaxError, -1, "Couldn't find a font for '{0:s}'",
-			gfxFont->getName() ? gfxFont->getName()->getCString() : "(unnamed)");
+		fontLoc = gfxFont->locateFont((xref) ? xref : pdfDoc->getXRef(), nullptr);
+		if (!fontLoc)
+		{
+			error(errSyntaxError, -1, "Couldn't find a font for '{0:s}'", gfxFont->getName() ? gfxFont->getName()->getCString() : "(unnamed)");
 			goto err2;
 		}
 




More information about the scribus-commit mailing list