From 1ed73984639390759d26a2fc0209083d9f984d52 Mon Sep 17 00:00:00 2001 From: elixir Date: Mon, 1 Apr 2013 20:14:07 +0200 Subject: fdo#51656 : Mean value line starts in wrong place in column graph Change-Id: I2389687e54cec4c0e873bcc120cc21b3c3d11d78 --- chart2/source/view/charttypes/VSeriesPlotter.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'chart2') diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx index 6e114ddae0a5..884df9a6dcd5 100644 --- a/chart2/source/view/charttypes/VSeriesPlotter.cxx +++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx @@ -1011,13 +1011,16 @@ void VSeriesPlotter::createRegressionCurvesShapes( VDataSeries& rVDataSeries xRegressionCurveCalculator->getCurveValues( fMinX, fMaxX, nRegressionPointCount, xScalingX, xScalingY, bMaySkipPointsInRegressionCalculation )); nRegressionPointCount = aCalculatedPoints.getLength(); + bool bAverageLine = RegressionCurveHelper::isMeanValueLine( aCurveList[nN] ); for(sal_Int32 nP=0; nPdoLogicScaling( &fLogicX, &fLogicY, &fLogicZ ); + // fdo#51656: don't scale mean value lines + if(!bAverageLine) + m_pPosHelper->doLogicScaling( &fLogicX, &fLogicY, &fLogicZ ); if( !::rtl::math::isNan(fLogicX) && !::rtl::math::isInf(fLogicX) && !::rtl::math::isNan(fLogicY) && !::rtl::math::isInf(fLogicY) @@ -1045,7 +1048,6 @@ void VSeriesPlotter::createRegressionCurvesShapes( VDataSeries& rVDataSeries aVLineProperties.initFromPropertySet( xCurveModelProp ); //create an extra group shape for each curve for selection handling - bool bAverageLine = RegressionCurveHelper::isMeanValueLine( aCurveList[nN] ); uno::Reference< drawing::XShapes > xRegressionGroupShapes = createGroupShape( xTarget, rVDataSeries.getDataCurveCID( nN, bAverageLine ) ); uno::Reference< drawing::XShape > xShape = m_pShapeFactory->createLine2D( -- cgit v1.2.3