[Libreoffice-commits] core.git: xmloff/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Dec 28 21:19:29 UTC 2018


 xmloff/source/draw/shapeexport.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 928f84e9c041fe1febf1cdffe64cd73471071641
Author:     Regina Henschel <rb.henschel at t-online.de>
AuthorDate: Thu Dec 27 02:08:02 2018 +0100
Commit:     Regina Henschel <rb.henschel at t-online.de>
CommitDate: Fri Dec 28 22:19:07 2018 +0100

    tdf#112480 drawooo:enhanced-path only with ODF ver > 1.2
    
    Saving in ODF 1.2 strict using a debug build crashes in
    SvXMLNamespaceMap::GetQNameByKey. A pro build does not crash but
    returns the local name without a prefix, which produces the
    output reported in Bugzilla.
    
    Change-Id: I497cd4a2861f26616cc9ff0b65ca017834097f75
    Reviewed-on: https://gerrit.libreoffice.org/65631
    Tested-by: Jenkins
    Reviewed-by: Regina Henschel <rb.henschel at t-online.de>

diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx
index fbbd35f32b41..e1bea5b3debf 100644
--- a/xmloff/source/draw/shapeexport.cxx
+++ b/xmloff/source/draw/shapeexport.cxx
@@ -4100,7 +4100,7 @@ static void ImpExportEnhancedPath( SvXMLExport& rExport,
     }
     aStr = aStrBuffer.makeStringAndClear();
     rExport.AddAttribute( bExtended ? XML_NAMESPACE_DRAW_EXT : XML_NAMESPACE_DRAW, XML_ENHANCED_PATH, aStr );
-    if ( !bExtended && bNeedExtended )
+    if ( !bExtended && bNeedExtended && (rExport.getDefaultVersion() > SvtSaveOptions::ODFVER_012) )
         ImpExportEnhancedPath( rExport, rCoordinates, rSegments, true );
 }
 


More information about the Libreoffice-commits mailing list