diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-02-22 16:33:23 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-02-23 10:36:45 +0100 |
commit | 4052ce767a020383781c7351632e58d6ceea74d0 (patch) | |
tree | f86d7e0369063056c5d6a89eba3782b133d37264 | |
parent | 8c30a0b9289e48598baafbd6c264d0ba58c0d40e (diff) |
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.mcnamara@collabora.com>
-rw-r--r-- | chart2/source/view/main/ShapeFactory.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
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 { |