diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-04-08 05:06:52 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-04-08 05:06:52 +0200 |
commit | a52940655d6a012379d0c779050c5008235e3979 (patch) | |
tree | 78d6fc1b6c25f55efe08cfe14de74c72bfc07628 /chart2 | |
parent | 39c74649f61d21b8fcb3f8374b56d6bffdf0a020 (diff) |
clear the container to be safe
Change-Id: Ifa90e2839898079da4dc09e55feba6626e6a8fa8
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/charttypes/3DBarChart.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chart2/source/view/charttypes/3DBarChart.cxx b/chart2/source/view/charttypes/3DBarChart.cxx index f294d3db63f4..13e3fafa4be4 100644 --- a/chart2/source/view/charttypes/3DBarChart.cxx +++ b/chart2/source/view/charttypes/3DBarChart.cxx @@ -35,6 +35,7 @@ void Bar3DChart::create3DShapes() const float nBarDistanceX = nBarSizeX / 2; const float nBarDistanceY = nBarSizeY / 2; + maShapes.clear(); maShapes.push_back(new opengl3D::Camera()); sal_Int32 nSeriesIndex = 0; for(std::vector<VDataSeries*>::const_iterator itr = maDataSeries.begin(), |