diff options
-rw-r--r-- | chart2/source/view/charttypes/VSeriesPlotter.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx index f9c3ad0e94c6..ea7d5555c8be 100644 --- a/chart2/source/view/charttypes/VSeriesPlotter.cxx +++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx @@ -1179,6 +1179,8 @@ void VSeriesPlotter::createRegressionCurvesShapes( VDataSeries const & rVDataSer fMinX -= aExtrapolateBackward; fPointScale = (fMaxX - fMinX) / (fChartMaxX - fChartMinX); + // sanitize the value, tdf#119922 + fPointScale = std::min(fPointScale, 1000.0); } xCalculator->setRegressionProperties(aDegree, bForceIntercept, aInterceptValue, aPeriod); |