summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2018-12-26 18:13:58 +0100
committerAndras Timar <andras.timar@collabora.com>2019-01-17 14:01:25 +0100
commit6594e0bb887581041d08f61b0d8d4466b169851f (patch)
treee470f6e3203e88a14b3c447507d67fd9a5ba8a8c /xmloff
parent812b23421e064dc7a211f8e61e14b3c6be5f1ddd (diff)
tdf#122335: sub-view-size can only be used with ODF ver > 1.2
Change-Id: I7dd767fddd11319017a215c240684dcc17238c4e Reviewed-on: https://gerrit.libreoffice.org/65627 Tested-by: Jenkins Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> (cherry picked from commit 26ad33a6f1e894d7352fb3d175c8d15dd28673b2)
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/shapeexport.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx
index 887f5ecfd372..b5f54a2da06f 100644
--- a/xmloff/source/draw/shapeexport.cxx
+++ b/xmloff/source/draw/shapeexport.cxx
@@ -4536,6 +4536,11 @@ void ImpExportEnhancedGeometry( SvXMLExport& rExport, const uno::Reference< bean
{
case EAS_SubViewSize:
{
+ // export draw:sub-view-size (do not export in ODF 1.2 or older)
+ if (rExport.getDefaultVersion() <= SvtSaveOptions::ODFVER_012)
+ {
+ continue;
+ }
uno::Sequence< awt::Size > aSubViewSizes;
rProp.Value >>= aSubViewSizes;