<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - FILEOPEN Calc crashes when opening XLSX with chart."
href="https://bugs.documentfoundation.org/show_bug.cgi?id=111173#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - FILEOPEN Calc crashes when opening XLSX with chart."
href="https://bugs.documentfoundation.org/show_bug.cgi?id=111173">bug 111173</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>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=135107" name="attach_135107" title="quick patch">attachment 135107</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=135107&action=edit" title="quick patch">[details]</a></span>
quick patch
The only location I found where xLabelGroupShape is initialized is here:
356 uno::Reference< container::XChild > xChild(
aPieLabelInfo.xTextShape, uno::UNO_QUERY );
357 if( xChild.is() )
358 aPieLabelInfo.xLabelGroupShape.set( xChild->getParent(),
uno::UNO_QUERY );
(see
<a href="https://opengrok.libreoffice.org/xref/core/chart2/source/view/charttypes/PieChart.cxx#358">https://opengrok.libreoffice.org/xref/core/chart2/source/view/charttypes/PieChart.cxx#358</a>)
aPieLabelInfo.xTextShape is initialized some lines before:
350 aPieLabelInfo.xTextShape = createDataLabel(
351 xTextTarget, rSeries, nPointIndex, nVal, rParam.mfLogicYSum,
352 aScreenPosition2D, eAlignment, 0, nTextMaximumFrameWidth);
But "createDataLabel" may return an empty ref (see
<a href="https://opengrok.libreoffice.org/xref/core/chart2/source/view/charttypes/VSeriesPlotter.cxx#406">https://opengrok.libreoffice.org/xref/core/chart2/source/view/charttypes/VSeriesPlotter.cxx#406</a>)
I attached a quick (but perhaps dirty or wrong) patch.
With it I could open the file.</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>