Kaydet (Commit) fc4f5d2f authored tarafından Markus Mohrhard's avatar Markus Mohrhard

another lifecycle issue fixed

Change-Id: Id8acd1bda30156da8cf5f61537f76f778e1b9c74
üst 111cec82
......@@ -167,17 +167,19 @@ public:
virtual void contextDestroyed() SAL_OVERRIDE;
private:
ChartView* mpView;
bool mbContextDestroyed;
};
GL2DRenderer::GL2DRenderer(ChartView* pView):
mpView(pView)
mpView(pView),
mbContextDestroyed(false)
{
}
GL2DRenderer::~GL2DRenderer()
{
OpenGLWindow* pWindow = mpView->mrChartModel.getOpenGLWindow();
if(pWindow)
if(!mbContextDestroyed &&pWindow)
pWindow->setRenderer(NULL);
}
......@@ -200,6 +202,7 @@ void GL2DRenderer::scroll(long )
void GL2DRenderer::contextDestroyed()
{
mbContextDestroyed = true;
}
const uno::Sequence<sal_Int8>& ExplicitValueProvider::getUnoTunnelId()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment