summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2020-04-30 18:26:14 +0200
committerMichael Stahl <michael.stahl@cib.de>2020-05-19 10:25:42 +0200
commitbd03dc39f6f02a875590413378355daa4893a988 (patch)
tree00f28fab2c4853f25a5fe82648a828528378002b /xmloff
parent9019288dc1ea8c6db615b9f8bbae14efc1ed8cd8 (diff)
tdf#97630 xmloff: ODF export: fix draw:fit-to-size mess, step 2
Restrict the export of draw:fit-to-size to only the standard values "true"/"false". Keep the broken export for ODFVER_012_EXT_COMPAT, since it's easy to do. Change-Id: Ieaab3b635a116a1d0b6155115f8f7f74935a125a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93226 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/sdpropls.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/xmloff/source/draw/sdpropls.cxx b/xmloff/source/draw/sdpropls.cxx
index a6298d892450..1902d20c3f30 100644
--- a/xmloff/source/draw/sdpropls.cxx
+++ b/xmloff/source/draw/sdpropls.cxx
@@ -1172,12 +1172,8 @@ const XMLPropertyHandler* XMLSdPropHdlFactory::GetPropertyHandler( sal_Int32 nTy
case XML_SD_TYPE_FITTOSIZE:
{
if (mpExport
-#if 1
-// TODO: remove in a couple releases, when users have the import of style:shrink-to-fit
- && (mpExport->getSaneDefaultVersion()
- <= SvtSaveOptions::ODFSVER_012)
-#endif
- )
+ && (mpExport->getSaneDefaultVersion() // tdf#97630
+ != SvtSaveOptions::ODFSVER_012_EXT_COMPAT))
{
pHdl = new XMLFitToSizeEnumPropertyHdl(pXML_FitToSize_Enum_Odf12);
}