diff options
author | xukai <xukai@multicorewareinc.com> | 2014-09-19 15:26:34 +0800 |
---|---|---|
committer | Kohei Yoshida <libreoffice@kohei.us> | 2014-09-23 15:05:00 +0000 |
commit | bc1b8dd63e74c255a989ac51a92d7db0bba75bc3 (patch) | |
tree | 752737f4d33c01bc16f7fc7b160d89a956f13dd9 /chart2 | |
parent | 5c9ca2fb863e84ae2328f6b0186e137cd5f02ed6 (diff) |
use environment AUTO_FLY to control if autofly
Change-Id: Ie47dfdc5f3b07f6e1a6336fc235ac6ccd5d53cab
Reviewed-on: https://gerrit.libreoffice.org/11540
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Tested-by: Kohei Yoshida <libreoffice@kohei.us>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/charttypes/GL3DBarChart.cxx | 11 | ||||
-rw-r--r-- | chart2/source/view/inc/GL3DBarChart.hxx | 1 |
2 files changed, 10 insertions, 2 deletions
diff --git a/chart2/source/view/charttypes/GL3DBarChart.cxx b/chart2/source/view/charttypes/GL3DBarChart.cxx index 9b444218bcad..7eefac675dbe 100644 --- a/chart2/source/view/charttypes/GL3DBarChart.cxx +++ b/chart2/source/view/charttypes/GL3DBarChart.cxx @@ -494,7 +494,8 @@ GL3DBarChart::GL3DBarChart( mnColorRate(0), mbBenchMarkMode(false), mnHistoryCounter(0), - mnBarsInRow(0) + mnBarsInRow(0), + mbAutoFly(false) { maFPSRenderStartTime.Seconds = maFPSRenderStartTime.Nanosec = 0; maFPSRenderEndTime.Seconds = maFPSRenderEndTime.Nanosec = 0; @@ -518,6 +519,11 @@ GL3DBarChart::GL3DBarChart( mpRenderer->SetScroll(); } } + char *aAutoFly = getenv("AUTO_FLY"); + if (aAutoFly) + { + mbAutoFly = atoi(aAutoFly); + } maTimer.SetTimeout(DATA_UPDATE_TIME); maTimer.SetTimeoutHdl(LINK(this, GL3DBarChart, updateTimer)); maTimer.Start(); @@ -676,7 +682,8 @@ void GL3DBarChart::create3DShapes(const boost::ptr_vector<VDataSeries>& rDataSer } else { - processAutoFly(nId, nColor); + if(mbAutoFly) + processAutoFly(nId, nColor); } } maShapes.push_back(new opengl3D::Bar(mpRenderer.get(), aBarPosition, nColor, nId)); diff --git a/chart2/source/view/inc/GL3DBarChart.hxx b/chart2/source/view/inc/GL3DBarChart.hxx index bebca5806b0f..4ae2385fc397 100644 --- a/chart2/source/view/inc/GL3DBarChart.hxx +++ b/chart2/source/view/inc/GL3DBarChart.hxx @@ -192,6 +192,7 @@ private: bool mbBenchMarkMode; sal_uInt32 mnHistoryCounter; sal_uInt32 mnBarsInRow; + bool mbAutoFly; // these form a pair: |