summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorLaurent Balland-Poirier <laurent.balland-poirier@laposte.net>2013-11-12 20:55:21 +0100
committerTomaž Vajngerl <quikee@gmail.com>2013-11-16 11:16:15 +0000
commit06d2d3290acb5dd3200481b85baf7c5718ea177c (patch)
tree2f655ef890c3cdefd6d849fb6fc4ba851df3bc3f /chart2
parent40b2a899d5bcba98be371a93c635d04d36ff2c2b (diff)
fdo#35712 Correct update of equation in status bar
Change-Id: I6db5628bbad337f70e3a39a4c65afbd0f6c30a9d Reviewed-on: https://gerrit.libreoffice.org/6658 Tested-by: Tomaž Vajngerl <quikee@gmail.com> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/dialogs/ObjectNameProvider.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/chart2/source/controller/dialogs/ObjectNameProvider.cxx b/chart2/source/controller/dialogs/ObjectNameProvider.cxx
index 9b0fdc91b69b..749131632b4b 100644
--- a/chart2/source/controller/dialogs/ObjectNameProvider.cxx
+++ b/chart2/source/controller/dialogs/ObjectNameProvider.cxx
@@ -559,6 +559,18 @@ OUString ObjectNameProvider::getHelpText( const OUString& rObjectCID, const Refe
try
{
Reference< chart2::XRegressionCurveCalculator > xCalculator( xCurve->getCalculator(), uno::UNO_QUERY_THROW );
+ sal_Int32 aDegree = 2;
+ sal_Bool aForceIntercept = false;
+ double aInterceptValue = 0.0;
+ uno::Reference< beans::XPropertySet > xProperties( xCurve, uno::UNO_QUERY );
+ if ( xProperties.is())
+ {
+ xProperties->getPropertyValue( "PolynomialDegree") >>= aDegree;
+ xProperties->getPropertyValue( "ForceIntercept") >>= aForceIntercept;
+ if (aForceIntercept)
+ xProperties->getPropertyValue( "InterceptValue") >>= aInterceptValue;
+ }
+ xCalculator->setRegressionProperties(aDegree, aForceIntercept, aInterceptValue, 2);
RegressionCurveHelper::initializeCurveCalculator( xCalculator, xSeries, xChartModel );
// replace formula