summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
Diffstat (limited to 'chart2')
-rwxr-xr-xchart2/source/view/main/OpenGLRender.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/view/main/OpenGLRender.cxx b/chart2/source/view/main/OpenGLRender.cxx
index a4184323dcce..4d0f25ec7b3c 100755
--- a/chart2/source/view/main/OpenGLRender.cxx
+++ b/chart2/source/view/main/OpenGLRender.cxx
@@ -1031,10 +1031,10 @@ int OpenGLRender::Bubble2DShapePoint(float x, float y, float directionX, float d
float actualX = (x / OPENGL_SCALE_VALUE);
float actualY = (y / OPENGL_SCALE_VALUE);
Bubble2DPointList aBubble2DPointList;
- aBubble2DPointList.x = actualX;
- aBubble2DPointList.y = actualY;
aBubble2DPointList.xScale = directionX / OPENGL_SCALE_VALUE;
aBubble2DPointList.yScale = directionY / OPENGL_SCALE_VALUE;
+ aBubble2DPointList.x = actualX + aBubble2DPointList.xScale / 2;
+ aBubble2DPointList.y = actualY + aBubble2DPointList.yScale / 2;
m_Bubble2DShapePointList.push_back(aBubble2DPointList);
return 0;