[Libreoffice-bugs] [Bug 111173] FILEOPEN Calc crashes when opening XLSX with chart.

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Aug 3 21:14:56 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=111173

--- Comment #5 from Julien Nabet <serval2412 at yahoo.fr> ---
Created attachment 135107
  --> https://bugs.documentfoundation.org/attachment.cgi?id=135107&action=edit
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
https://opengrok.libreoffice.org/xref/core/chart2/source/view/charttypes/PieChart.cxx#358)

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
https://opengrok.libreoffice.org/xref/core/chart2/source/view/charttypes/VSeriesPlotter.cxx#406)

I attached a quick (but perhaps dirty or wrong) patch.
With it I could open the file.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170803/ce738b59/attachment.html>


More information about the Libreoffice-bugs mailing list