diff options
Diffstat (limited to 'app-office/libreoffice/files/libreoffice-poppler-0.18.0.patch')
-rw-r--r-- | app-office/libreoffice/files/libreoffice-poppler-0.18.0.patch | 66 |
1 files changed, 52 insertions, 14 deletions
diff --git a/app-office/libreoffice/files/libreoffice-poppler-0.18.0.patch b/app-office/libreoffice/files/libreoffice-poppler-0.18.0.patch index 87fbe41c48fd..819deaf29e14 100644 --- a/app-office/libreoffice/files/libreoffice-poppler-0.18.0.patch +++ b/app-office/libreoffice/files/libreoffice-poppler-0.18.0.patch @@ -1,24 +1,62 @@ -From 91313fc05abbfe35ee1e0c2464a28dd580780f07 Mon Sep 17 00:00:00 2001 -From: Caolán McNamara <caolanm@redhat.com> -Date: Fri, 02 Sep 2011 12:15:49 +0000 -Subject: Resolves: rhbz#735182 libreoffice doesn't build with poppler-0.17.3 +From 53e66aea4c1b3617363fd138a7903190d964da6b Mon Sep 17 00:00:00 2001 +From: Tomáš Chvátal <tchvatal@suse.cz> +Date: Fri, 30 Sep 2011 09:51:04 +0000 +Subject: This is merge of f6f8f67460bba296c49f794d14621b7313df4f7d. + +It is not posible to git-am due to merge to core/ repository. +It had one minor collision on pdfioutdev_gpl.hxx. +Orginal header: +From f6f8f67460bba296c49f794d14621b7313df4f7d Mon Sep 17 00:00:00 2001 +From: Caolán McNamara <caolanm@redhat.com> +Date: Tue, 19 Jul 2011 07:54:07 +0000 +Subject: poppler 0.17.0 changed its api for no some reason or other --- diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx -index cf28922..3f1261c 100644 +index f7741b4..5022dd5 100644 --- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx +++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx -@@ -150,7 +150,11 @@ void writeBinaryBuffer( const OutputBuffer& rBuffer ) - void writeJpeg_( OutputBuffer& o_rOutputBuf, Stream* str, bool bWithLinefeed ) - { - // dump JPEG file as-is -+#if POPPLER_CHECK_VERSION(0, 17, 3) -+ str = str->getBaseStream(); +@@ -489,7 +489,11 @@ void PDFOutDev::endPage() + printf("endPage\n"); + } + ++#if POPPLER_CHECK_VERSION(0, 17, 0) ++void PDFOutDev::processLink(AnnotLink *link, Catalog *catalog) +#else - str = ((DCTStream *)str)->getRawStream(); + void PDFOutDev::processLink(Link* link, Catalog*) +#endif - str->reset(); + { + assert(link); + +diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx +index 3ac0f49..8a1708c 100644 +--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx ++++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx +@@ -65,7 +65,10 @@ class GfxPath; + class GfxFont; + class PDFDoc; + #ifndef SYSTEM_POPPLER ++#define POPPLER_CHECK_VERSION(major,minor,micro) (0) + typedef GString GooString; ++#else ++#include <glib/poppler-features.h> + #endif - int c; + namespace pdfi +@@ -193,9 +196,13 @@ namespace pdfi + // Convert between device and user coordinates. + // virtual void cvtDevToUser(double dx, double dy, double *ux, double *uy); + // virtual void cvtUserToDev(double ux, double uy, int *dx, int *dy); +- ++ ++ #if POPPLER_CHECK_VERSION(0, 17, 0) ++ virtual void processLink(AnnotLink *link, Catalog *catalog); ++ #else + //----- link borders + virtual void processLink(Link *link, Catalog *catalog); ++ #endif + + //----- save/restore graphics state + virtual void saveState(GfxState *state); -- cgit v0.9.0.2-2-gbebe |