summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-06-19 15:36:38 +0200
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-06-19 15:37:05 +0200
commit1f3f725a29412b49ac8ded7b425674ef10afc7b3 (patch)
tree8a5c9e3da7b561a597396cbfb4591c06caa35dc6 /chart2
parent6e427b30fe113b3717f00515ee70458dbb9dbfab (diff)
small text positioning fixes
Change-Id: I7fb42f0c34c5216421324f471a813f4668b4a878
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/charttypes/GL3DBarChart.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/view/charttypes/GL3DBarChart.cxx b/chart2/source/view/charttypes/GL3DBarChart.cxx
index 9c22929cfac0..29a6fbd18f4c 100644
--- a/chart2/source/view/charttypes/GL3DBarChart.cxx
+++ b/chart2/source/view/charttypes/GL3DBarChart.cxx
@@ -244,7 +244,7 @@ void GL3DBarChart::create3DShapes(const boost::ptr_vector<VDataSeries>& rDataSer
aCats[i], nId));
nId += ID_STEP;
opengl3D::Text* p = static_cast<opengl3D::Text*>(&maShapes.back());
- aTopLeft.x = nXPos + TEXT_HEIGHT;
+ aTopLeft.x = nXPos + TEXT_HEIGHT + 0.5 * BAR_SIZE_X;
aTopLeft.y = nYPos + calculateTextWidth(aCats[i]) + 0.5 * BAR_DISTANCE_Y;
aTopRight = aTopLeft;
aTopRight.y = nYPos + 0.5* BAR_DISTANCE_Y;
@@ -258,7 +258,7 @@ void GL3DBarChart::create3DShapes(const boost::ptr_vector<VDataSeries>& rDataSer
aCats[i], nId));
nId += ID_STEP;
p = static_cast<opengl3D::Text*>(&maShapes.back());
- aTopLeft.x = nXPos + TEXT_HEIGHT;
+ aTopLeft.x = nXPos + TEXT_HEIGHT + 0.5 * BAR_SIZE_X;
aTopLeft.y = - 0.5 * BAR_DISTANCE_Y;
aTopRight = aTopLeft;
aTopRight.y = -calculateTextWidth(aCats[i]) - 0.5* BAR_DISTANCE_Y;