writerperfect/source/stream/WPXSvStream.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit bb8839250271b6d951233e0ad21a773962d06889 Author: Fridrich Å trba <fridrich.st...@bluewin.ch> Date: Sun Sep 23 14:42:28 2012 +0200 The upcoming libwpd 0.9.5 has also WPX_SEEK_END seek type Change-Id: I7be3b67c797a728b5c72e957c67e3f864072addc diff --git a/writerperfect/source/stream/WPXSvStream.cxx b/writerperfect/source/stream/WPXSvStream.cxx index 12be644..b058b87 100644 --- a/writerperfect/source/stream/WPXSvStream.cxx +++ b/writerperfect/source/stream/WPXSvStream.cxx @@ -99,6 +99,12 @@ int WPXSvInputStream::seek(long offset, WPX_SEEK_TYPE seekType) sal_Int64 tmpOffset = offset; if (seekType == WPX_SEEK_CUR) tmpOffset += tmpPosition; +#if defined(LIBWPD_STREAM_VERSION_MAJOR) && defined(LIBWPD_STREAM_VERSION_MINOR) && defined(LIBWPD_STREAM_VERSION_REVISION) \ + && (LIBWPD_STREAM_VERSION_MAJOR > 0 || (LIBWPD_STREAM_VERSION_MAJOR == 0 && (LIBWPD_STREAM_VERSION_MINOR > 9 \ + || (LIBWPD_STREAM_VERSION_MINOR == 9 && LIBWPD_STREAM_VERSION_REVISION >= 5)))) + if (seekType == WPX_SEEK_END) + tmpOffset += mnLength; +#endif int retVal = 0; if (tmpOffset < 0)
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits