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

Markus Mohrhard markus.mohrhard at collabora.co.uk
Tue May 6 04:15:01 PDT 2014


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

New commits:
commit 1fd0d0f3fc8b71675f961a08ad4cdbc8e186a6bc
Author: Markus Mohrhard <markus.mohrhard at collabora.co.uk>
Date:   Tue May 6 13:09:30 2014 +0200

    fix matrix generation
    
    Change-Id: Id31caa16dfe0d0f23cf07589053233e9b311d02f

diff --git a/chart2/source/view/charttypes/GL3DBarChart.cxx b/chart2/source/view/charttypes/GL3DBarChart.cxx
index caf13a7..b29d193 100644
--- a/chart2/source/view/charttypes/GL3DBarChart.cxx
+++ b/chart2/source/view/charttypes/GL3DBarChart.cxx
@@ -53,8 +53,8 @@ void GL3DBarChart::create3DShapes()
             float nYPos = nSeriesIndex * (nBarSizeY + nBarDistanceY);
 
             glm::mat4 aBarPosition;
-            glm::scale(aBarPosition, nBarSizeX, nBarSizeY, nVal);
-            glm::translate(aBarPosition, nXPos, nYPos, nVal/2);
+            aBarPosition = glm::scale(aBarPosition, nBarSizeX, nBarSizeY, nVal);
+            aBarPosition = glm::translate(aBarPosition, nXPos, nYPos, nVal/2);
 
             maShapes.push_back(new opengl3D::Bar(mpRenderer.get(), aBarPosition, nId++));
         }


More information about the Libreoffice-commits mailing list