diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2018-12-26 18:13:58 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2018-12-31 21:48:28 +0100 |
commit | 26ad33a6f1e894d7352fb3d175c8d15dd28673b2 (patch) | |
tree | a3336319ac58533dcde15e1fabfa1ef616e7478f /xmloff/source/draw | |
parent | 9377e77b8b49a4b0bf045566bbe802b511ca1fd8 (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>
Diffstat (limited to 'xmloff/source/draw')
-rw-r--r-- | xmloff/source/draw/shapeexport.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx index 733df9b1ba98..e81b99b52978 100644 --- a/xmloff/source/draw/shapeexport.cxx +++ b/xmloff/source/draw/shapeexport.cxx @@ -4599,6 +4599,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; |