<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Assertion failed in SvXMLNamespaceMap::GetQNameByKey when opening a certain XLSX, and ODF format version is set to 1.2 (strict)"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=113841#c9">Comment # 9</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Assertion failed in SvXMLNamespaceMap::GetQNameByKey when opening a certain XLSX, and ODF format version is set to 1.2 (strict)"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=113841">bug 113841</a>
from <span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span></b>
<pre>Depending of bIsOOoNamespace, either it's true and we use
XML_NAMESPACE_CHART_EXT or it's false and we use XML_NAMESPACE_SVG.
In our case, the var is put to true, so it's expected we assert if we use ODF
1.2
I must recognize I don't know if bIsOOoNamespace should be put to false here,
just found these related commits about it:
<a href="https://cgit.freedesktop.org/libreoffice/core/commit/?id=e26194b675380ad6b6a1287f97bce93006be176c">https://cgit.freedesktop.org/libreoffice/core/commit/?id=e26194b675380ad6b6a1287f97bce93006be176c</a>
<a href="https://cgit.freedesktop.org/libreoffice/core/commit/?id=c0f7a3f7cf33debd0f6049c415c412d14526a79e">https://cgit.freedesktop.org/libreoffice/core/commit/?id=c0f7a3f7cf33debd0f6049c415c412d14526a79e</a>
If this variable should indeed be put to true, we should just test that
nCurrentODFVersion > SvtSaveOptions::ODFVER_012 to call addSize method or not.
This would give:
diff --git a/xmloff/source/chart/SchXMLExport.cxx
b/xmloff/source/chart/SchXMLExport.cxx
index 1e59110e84b8..02b03a677599 100644
--- a/xmloff/source/chart/SchXMLExport.cxx
+++ b/xmloff/source/chart/SchXMLExport.cxx
@@ -1386,7 +1386,8 @@ void SchXMLExportHelper_Impl::parseDocument( Reference<
chart::XChartDocument >
if( nLegendExpansion ==
chart::ChartLegendExpansion_CUSTOM)
{
awt::Size aSize( xLegendShape->getSize() );
- addSize( aSize, true );
+ if( nCurrentODFVersion >
SvtSaveOptions::ODFVER_012 )
+ addSize( aSize, true );
OUStringBuffer aAspectRatioString;
::sax::Converter::convertDouble(
aAspectRatioString,</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>