summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-04-08 19:09:22 +0200
committerJan Holesovsky <kendy@collabora.com>2014-04-08 19:13:37 +0200
commit874a9b46cb54e4c05e262e5d7490790a08ea0c55 (patch)
treec29e188203dc1293ddd4394fc51e869f61a709ca /desktop
parent9a0ac1dd5154542f8cea0772c7c7c5d526cf5a2f (diff)
liblo: Older versions do not have saveAsWithOptions yet.
Change-Id: I41b15e81f2e3c5c413b73382a1f55d79a4f7103a
Diffstat (limited to 'desktop')
-rw-r--r--desktop/inc/liblibreoffice.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/desktop/inc/liblibreoffice.hxx b/desktop/inc/liblibreoffice.hxx
index 29d3f7222373..3afdc4be2675 100644
--- a/desktop/inc/liblibreoffice.hxx
+++ b/desktop/inc/liblibreoffice.hxx
@@ -42,6 +42,10 @@ public:
inline bool saveAsWithOptions(const char* pUrl, const char* pFormat = NULL, const char* pFilterOptions = NULL)
{
+ // available since LibreOffice 4.3
+ if (!mpDoc->saveAsWithOptions)
+ return false;
+
return mpDoc->saveAsWithOptions(mpDoc, pUrl, pFormat, pFilterOptions);
}
};