diff options
author | xukai <xukai@multicorewareinc.com> | 2014-09-19 15:18:41 +0800 |
---|---|---|
committer | Kohei Yoshida <libreoffice@kohei.us> | 2014-09-23 15:04:38 +0000 |
commit | 5c9ca2fb863e84ae2328f6b0186e137cd5f02ed6 (patch) | |
tree | 5a21d1408e0536289beb8faa2cba1f6322aae83a /chart2 | |
parent | 32d267f556634d3bbceba4978efc4d8cb62b148c (diff) |
update effect of bar click
Change-Id: Ibb09537d418e78c7fc9b6760988abd56505268b3
Reviewed-on: https://gerrit.libreoffice.org/11539
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 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/chart2/source/view/charttypes/GL3DBarChart.cxx b/chart2/source/view/charttypes/GL3DBarChart.cxx index d07653fe4c8c..9b444218bcad 100644 --- a/chart2/source/view/charttypes/GL3DBarChart.cxx +++ b/chart2/source/view/charttypes/GL3DBarChart.cxx @@ -567,6 +567,19 @@ void GL3DBarChart::create3DShapes(const boost::ptr_vector<VDataSeries>& rDataSer { SharedResourceAccess(maCond1, maCond2); osl::MutexGuard aGuard(maMutex); + mnPreSelectBarId = mnSelectBarId; + mnSelectBarId -= 10; + sal_uInt32 nSelectRow = (mnSelectBarId - SHAPE_START_ID) / ID_STEP / (mnBarsInRow + 1); + sal_uInt32 nPreSelectRow = (mnPreSelectBarId - SHAPE_START_ID) / ID_STEP / (mnBarsInRow + 1); + if(nSelectRow != nPreSelectRow) + { + mnSelectBarId = mnPreSelectBarId; + } + else + { + mpRenderer->EndClick(); + mpRenderer->StartClick(mnSelectBarId); + } mpRenderer->ReleaseShapes(); // Each series of data flows from left to right, and multiple series are // stacked vertically along y axis. |