Kaydet (Commit) e206a3b4 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

tdf#119922, sanitize the point count when extrapolate is used

Change-Id: Iec5e591f51ab13efa4b014b82df213e91eb5b793
Reviewed-on: https://gerrit.libreoffice.org/60949
Tested-by: Jenkins
Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst 217cb86d
......@@ -1183,6 +1183,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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment