Fix build with poppler-0.83
Change-Id: I7a3684932b8f9c403a3368b42fa4d8039c67f1a9 Reviewed-on: https://gerrit.libreoffice.org/84384 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
This commit is contained in:
committed by
Michael Stahl
parent
2c56d8ce71
commit
9065cd8d9a
@@ -491,11 +491,18 @@ void PDFOutDev::writeFontFile( GfxFont* gfxFont ) const
|
||||
gfree(pBuf);
|
||||
}
|
||||
|
||||
#if POPPLER_CHECK_VERSION(0, 83, 0)
|
||||
void PDFOutDev::printPath( const GfxPath* pPath )
|
||||
#else
|
||||
void PDFOutDev::printPath( GfxPath* pPath )
|
||||
#endif
|
||||
{
|
||||
int nSubPaths = pPath ? pPath->getNumSubpaths() : 0;
|
||||
for( int i=0; i<nSubPaths; i++ )
|
||||
{
|
||||
#if POPPLER_CHECK_VERSION(0, 83, 0)
|
||||
const
|
||||
#endif
|
||||
GfxSubpath* pSub = pPath->getSubpath( i );
|
||||
const int nPoints = pSub->getNumPoints();
|
||||
|
||||
|
||||
@@ -149,7 +149,11 @@ namespace pdfi
|
||||
|
||||
int parseFont( long long nNewId, GfxFont* pFont, GfxState* state ) const;
|
||||
void writeFontFile( GfxFont* gfxFont ) const;
|
||||
#if POPPLER_CHECK_VERSION(0, 83, 0)
|
||||
static void printPath( const GfxPath* pPath );
|
||||
#else
|
||||
static void printPath( GfxPath* pPath );
|
||||
#endif
|
||||
|
||||
public:
|
||||
explicit PDFOutDev( PDFDoc* pDoc );
|
||||
|
||||
@@ -68,7 +68,11 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
// read config file
|
||||
#if POPPLER_CHECK_VERSION(0, 83, 0)
|
||||
globalParams = std::make_unique<GlobalParams>();
|
||||
#else
|
||||
globalParams = new GlobalParams();
|
||||
#endif
|
||||
globalParams->setErrQuiet(true);
|
||||
#if defined(_MSC_VER)
|
||||
globalParams->setupBaseFonts(nullptr);
|
||||
|
||||
Reference in New Issue
Block a user