[Libreoffice-commits] core.git: desktop/inc
Tomaž Vajngerl
tomaz.vajngerl at collabora.com
Tue Apr 8 11:16:51 PDT 2014
desktop/inc/liblibreoffice.hxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 874a9b46cb54e4c05e262e5d7490790a08ea0c55
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.com>
Date: Tue Apr 8 19:09:22 2014 +0200
liblo: Older versions do not have saveAsWithOptions yet.
Change-Id: I41b15e81f2e3c5c413b73382a1f55d79a4f7103a
diff --git a/desktop/inc/liblibreoffice.hxx b/desktop/inc/liblibreoffice.hxx
index 29d3f72..3afdc4b 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);
}
};
More information about the Libreoffice-commits
mailing list