chart2/source/view/main/ShapeFactory.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit 4052ce767a020383781c7351632e58d6ceea74d0 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Thu Feb 22 16:33:23 2024 +0000 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Fri Feb 23 10:36:45 2024 +0100 crashtesting: isNaN as fUnitCircleWidthAngleDegree presumably since recent tdf#50934 work affect files are: forums/xlsx/forum-mso-en4-295952.xlsx forums/xlsx/forum-mso-en4-523214.xlsx forums/xlsx/forum-mso-en4-656086.xlsx forums/xlsx/forum-mso-en4-702681.xlsx Change-Id: Ifc436d382f9cda13d2ae4459d436a72c5e40d8aa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163784 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/chart2/source/view/main/ShapeFactory.cxx b/chart2/source/view/main/ShapeFactory.cxx index 228d4b2a1156..0e572a7e8dcb 100644 --- a/chart2/source/view/main/ShapeFactory.cxx +++ b/chart2/source/view/main/ShapeFactory.cxx @@ -898,6 +898,12 @@ rtl::Reference<SvxShapePolyPolygon> xShape->setShapeKind(SdrObjKind::PathFill); // aka ClosedBezierShape xTarget->addShape(*xShape); //need to add the shape before setting of properties + if (std::isnan(fUnitCircleWidthAngleDegree)) + { + SAL_WARN("chart2", "fUnitCircleWidthAngleDegree isNaN"); + return xShape; + } + //set properties try {