diff options
-rwxr-xr-x | chart2/source/view/main/OpenGLRender.cxx | 13 | ||||
-rwxr-xr-x | chart2/source/view/main/OpenGLRender.hxx | 2 |
2 files changed, 6 insertions, 9 deletions
diff --git a/chart2/source/view/main/OpenGLRender.cxx b/chart2/source/view/main/OpenGLRender.cxx index d540fe28098d..5b6010855158 100755 --- a/chart2/source/view/main/OpenGLRender.cxx +++ b/chart2/source/view/main/OpenGLRender.cxx @@ -940,7 +940,6 @@ OpenGLRender::OpenGLRender(uno::Reference< drawing::XShape > xTarget): memset(&m_Bubble2DPointList, 0, sizeof(m_Bubble2DPointList)); memset(&m_Bubble2DCircle, 0, sizeof(m_Bubble2DCircle)); memset(&m_TextInfo, 0, sizeof(TextInfo)); - memset(&m_RectangleList, 0, sizeof(RectanglePointList)); m_iArbMultisampleFormat = 0; @@ -1347,13 +1346,13 @@ int OpenGLRender::RectangleShapePoint(float x, float y, float directionX, float //check whether to create the circle data float actualX = x / OPENGL_SCALE_VALUE; float actualY = y / OPENGL_SCALE_VALUE; - m_RectangleList.x = actualX; - m_RectangleList.y = actualY; - m_RectangleList.z = m_fZStep; - m_RectangleList.xScale = directionX / OPENGL_SCALE_VALUE; - m_RectangleList.yScale = directionY / OPENGL_SCALE_VALUE; + RectanglePointList aRectangleList.x = actualX; + aRectangleList.y = actualY; + aRectangleList.z = m_fZStep; + aRectangleList.xScale = directionX / OPENGL_SCALE_VALUE; + aRectangleList.yScale = directionY / OPENGL_SCALE_VALUE; - m_RectangleShapePointList.push_back(m_RectangleList); + m_RectangleShapePointList.push_back(aRectangleList); return 0; } diff --git a/chart2/source/view/main/OpenGLRender.hxx b/chart2/source/view/main/OpenGLRender.hxx index 5a28644fc953..68d0982395a3 100755 --- a/chart2/source/view/main/OpenGLRender.hxx +++ b/chart2/source/view/main/OpenGLRender.hxx @@ -278,8 +278,6 @@ private: float m_fAlpha; - RectanglePointList m_RectangleList; - std::list <RectanglePointList> m_RectangleShapePointList; // add for text TextInfo m_TextInfo; |