forked from pool/libvisio
1bf09bf503
- Performance regression fix * Add patch to unconditionally use WPX_SEEK_END * Depend on libwpd-devel >= 0.9.5 that has WPX_SEEK_END OBS-URL: https://build.opensuse.org/request/show/184376 OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libvisio?expand=0&rev=14
15 lines
680 B
Diff
15 lines
680 B
Diff
--- a/src/lib/VSDZipStream.cpp
|
|
+++ b/src/lib/VSDZipStream.cpp
|
|
@@ -161,11 +161,7 @@ WPXInputStream *libvisio::VSDZipStream::getDocumentOLEStream(const char *name)
|
|
|
|
bool libvisio::VSDZipStreamImpl::findCentralDirectoryEnd()
|
|
{
|
|
-#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 (m_cdir_offset || m_input->seek(-1024, WPX_SEEK_END))
|
|
-#endif
|
|
m_input->seek(m_cdir_offset, WPX_SEEK_SET);
|
|
try
|
|
{
|