Kaydet (Commit) bb883925 authored tarafından Fridrich Štrba's avatar Fridrich Štrba

The upcoming libwpd 0.9.5 has also WPX_SEEK_END seek type

Change-Id: I7be3b67c797a728b5c72e957c67e3f864072addc
üst 0251fdd0
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment