xmloff: ODF export: avoid mysterious crash while sorting shapes

Desktop / LibreOffice - Michael Stahl [allotropia.de] - 10 September 2021 10:44 UTC

Apparently the draw page contains a null XShape. That sounds like a bug but OTOH this sorting feature from commit 9bc6160e0acbc78be998129ea55ed7e4529959faa isn't that important so let's sweep the problem under the rug.

0 swlo.dll sw::GetZOrderLayer::operator()(com::sun::star::uno::Reference const &) C:\cygwin64\home\buildslave\source\libo-core\sw\source\filter\xml\zorder.hxx:37 1 mergedlo.dll xmloff::FixZOrder(com::sun::star::uno::Reference const &,std::function const &) C:\cygwin64\home\buildslave\source\libo-core\xmloff\source\draw\shapeexport.cxx:1003 2 swlo.dll SwXMLWriter::Write_(com::sun::star::uno::Reference const &,rtl::OUString const &) C:\cygwin64\home\buildslave\source\libo-core\sw\source\filter\xml\wrtxml.cxx:190

https://crashreport.libreoffice.org/stats/crash_details/045adea4-c577-4164-9e69-bde5f892bd17

Change-Id: I1e67dc1c354cb14717cf9667314d6752e1b4c295 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121860

a0d28d03ff40 xmloff: ODF export: avoid mysterious crash while sorting shapes
xmloff/source/draw/shapeexport.cxx | 5 +++++
1 file changed, 5 insertions(+)

Upstream: cgit.freedesktop.org


  • Share