diff options
author | Laurent Balland-Poirier <laurent.balland-poirier@laposte.net> | 2016-03-11 23:28:35 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-05-22 19:12:07 +0000 |
commit | 033b2ae8775d1dcf49f798e267761000cc51627c (patch) | |
tree | 83e276940761096572bc75875a381ffe4d88b13c /chart2/source/inc/LogarithmicRegressionCurveCalculator.hxx | |
parent | loplugin:staticmethods (diff) | |
download | core-033b2ae8775d1dcf49f798e267761000cc51627c.tar.gz core-033b2ae8775d1dcf49f798e267761000cc51627c.zip |
tdf#94004 Trendline: wrap equation to fit in chart area
If equation is too long compared to chart width:
equation is wrapped
and if equation has General format, the number of digits is reduced
In this patch, only polynomial equation is treated. If this approach is ok,
I will extend to other regression curves.
Conflicts:
chart2/source/view/charttypes/VSeriesPlotter.cxx
Change-Id: I1bfd897881d752655faec6df034c0dde7f78c51b
Reviewed-on: https://gerrit.libreoffice.org/18397
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'chart2/source/inc/LogarithmicRegressionCurveCalculator.hxx')
-rw-r--r-- | chart2/source/inc/LogarithmicRegressionCurveCalculator.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/inc/LogarithmicRegressionCurveCalculator.hxx b/chart2/source/inc/LogarithmicRegressionCurveCalculator.hxx index f8bda777535c..922562fa3c85 100644 --- a/chart2/source/inc/LogarithmicRegressionCurveCalculator.hxx +++ b/chart2/source/inc/LogarithmicRegressionCurveCalculator.hxx @@ -33,7 +33,7 @@ public: protected: virtual OUString ImplGetRepresentation( const css::uno::Reference<css::util::XNumberFormatter>& xNumFormatter, - sal_Int32 nNumberFormatKey ) const override; + sal_Int32 nNumberFormatKey, sal_Int32* pFormulaLength = nullptr ) const override; private: // ____ XRegressionCurveCalculator ____ |