You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-office/libreoffice/files/libreoffice-7.3.3.2-Add-mis...

26 lines
1.0 KiB

https://bugs.gentoo.org/843311
From: Sam James <sam@gentoo.org>
Date: Sun, 8 May 2022 21:22:49 +0000
Subject: [PATCH 2/2] Add missing nSize set for Poppler 22.04.0
Thanks-to: Stephan Hartmann <sultan@gentoo.org>
--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
@@ -478,6 +478,7 @@ int PDFOutDev::parseFont( long long nNewId, GfxFont* gfxFont, const GfxState* st
char* pBuf = gfxFont->readEmbFontFile( m_pDoc->getXRef(), &nSize );
#else
std::optional<std::vector<unsigned char>> pBuf = gfxFont->readEmbFontFile( m_pDoc->getXRef() );
+ nSize = pBuf->size();
#endif
if( pBuf )
{
@@ -502,6 +503,7 @@ void PDFOutDev::writeFontFile( GfxFont* gfxFont ) const
char* pBuf = gfxFont->readEmbFontFile( m_pDoc->getXRef(), &nSize );
#else
std::optional<std::vector<unsigned char>> pBuf = gfxFont->readEmbFontFile( m_pDoc->getXRef() );
+ nSize = pBuf->size();
#endif
if( !pBuf )
return;