[Libreoffice-commits] core.git: chart2/source

Kohei Yoshida kohei.yoshida at collabora.com
Thu May 8 13:15:38 PDT 2014


 chart2/source/view/charttypes/GL3DBarChart.cxx |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

New commits:
commit a4e028447e6f06e4d6660dbe95e15dca8cb5cbf2
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date:   Thu May 8 16:13:42 2014 -0400

    Try without std::back_inserter. Some tinderboxes don't like that.
    
    Change-Id: I37b5da446abe123d0e0526b5556014df606e6156

diff --git a/chart2/source/view/charttypes/GL3DBarChart.cxx b/chart2/source/view/charttypes/GL3DBarChart.cxx
index 4bf460e..e65f07e 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();
 }
 


More information about the Libreoffice-commits mailing list