diff options
-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 { |