summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-06-12 11:58:45 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-06-12 11:59:13 +0200
commitfc4f5d2f8576097953b83d7fecfe5eb5184811b1 (patch)
tree23f5bda68302455197cf781dffb2e0a0a44be518 /chart2
parent111cec826beefffb25f5efa73c7e5004f46a3cd8 (diff)
another lifecycle issue fixed
Change-Id: Id8acd1bda30156da8cf5f61537f76f778e1b9c74
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/main/ChartView.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx
index da62d13504b0..f04433b11997 100644
--- a/chart2/source/view/main/ChartView.cxx
+++ b/chart2/source/view/main/ChartView.cxx
@@ -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()