summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chart2/source/view/charttypes/GL3DBarChart.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/chart2/source/view/charttypes/GL3DBarChart.cxx b/chart2/source/view/charttypes/GL3DBarChart.cxx
index 4bf460e233a1..e65f07e787c0 100644
--- a/chart2/source/view/charttypes/GL3DBarChart.cxx
+++ b/chart2/source/view/charttypes/GL3DBarChart.cxx
@@ -125,8 +125,13 @@ void GL3DBarChart::create3DShapes()
p->setPosition(aTopLeft, aTopRight, aBottomRight);
}
- // Transfer all Y-axis text objects to the shape collection.
- std::copy(aYAxisTexts.begin(), aYAxisTexts.end(), std::back_inserter(maShapes));
+ {
+ // Transfer all Y-axis text objects to the shape collection.
+ std::vector<opengl3D::Text*>::iterator itText = aYAxisTexts.begin(), itTextEnd = aYAxisTexts.end();
+ for (; itText != itTextEnd; ++itText)
+ maShapes.push_back(*itText);
+ }
+
aYAxisTexts.clear();
}