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

New commits:
commit 928f84e9c041fe1febf1cdffe64cd73471071641
Author:     Regina Henschel <[email protected]>
AuthorDate: Thu Dec 27 02:08:02 2018 +0100
Commit:     Regina Henschel <[email protected]>
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 <[email protected]>

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 );
 }
 
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to