summaryrefslogtreecommitdiffstats
path: root/chart2/source/inc/LogarithmicRegressionCurveCalculator.hxx
diff options
context:
space:
mode:
authorLaurent Balland-Poirier <laurent.balland-poirier@laposte.net>2016-03-11 23:28:35 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-05-22 19:12:07 +0000
commit033b2ae8775d1dcf49f798e267761000cc51627c (patch)
tree83e276940761096572bc75875a381ffe4d88b13c /chart2/source/inc/LogarithmicRegressionCurveCalculator.hxx
parentloplugin:staticmethods (diff)
downloadcore-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.hxx2
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 ____