summaryrefslogtreecommitdiff
path: root/chart2/source/view
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-05-15 07:33:49 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-05-15 07:33:49 +0200
commitfd37d0757685dfd5a19ebd262c10e5353b8f891a (patch)
treeec993fcd95507cda0060f8b0a33ea7217822dcf7 /chart2/source/view
parent282b0123a34b978ea221d88ac668ed0c4423f801 (diff)
change transformation matrix
Diffstat (limited to 'chart2/source/view')
-rw-r--r--chart2/source/view/charttypes/GL3DBarChart.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/chart2/source/view/charttypes/GL3DBarChart.cxx b/chart2/source/view/charttypes/GL3DBarChart.cxx
index 04c3cac2caec..8ceb3d944f4f 100644
--- a/chart2/source/view/charttypes/GL3DBarChart.cxx
+++ b/chart2/source/view/charttypes/GL3DBarChart.cxx
@@ -72,7 +72,7 @@ void GL3DBarChart::create3DShapes(const boost::ptr_vector<VDataSeries>& rDataSer
for (boost::ptr_vector<VDataSeries>::const_iterator itr = rDataSeriesContainer.begin(),
itrEnd = rDataSeriesContainer.end(); itr != itrEnd; ++itr)
{
- nYPos = nSeriesIndex * (nBarSizeY + nBarDistanceY) + nBarSizeY;
+ nYPos = nSeriesIndex * (nBarSizeY + nBarDistanceY);
const VDataSeries& rDataSeries = *itr;
sal_Int32 nPointCount = rDataSeries.getTotalPointCount();
@@ -97,10 +97,10 @@ void GL3DBarChart::create3DShapes(const boost::ptr_vector<VDataSeries>& rDataSer
for(sal_Int32 nIndex = 0; nIndex < nPointCount; ++nIndex)
{
float nVal = rDataSeries.getYValue(nIndex);
- float nXPos = nIndex * (nBarSizeX + nBarDistanceX) + nBarSizeX;
+ float nXPos = nIndex * (nBarSizeX + nBarDistanceX);
- glm::mat4 aScaleMatrix = glm::scale(nBarSizeX, nBarSizeY, nVal);
+ glm::mat4 aScaleMatrix = glm::scale(nBarSizeX, nBarSizeY, 0);
glm::mat4 aTranslationMatrix = glm::translate(nXPos, nYPos, nVal);
glm::mat4 aBarPosition = aTranslationMatrix * aScaleMatrix;