summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()