summaryrefslogtreecommitdiff
path: root/chart2/source
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source')
-rwxr-xr-xchart2/source/view/charttypes/GL3DBarChart.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/chart2/source/view/charttypes/GL3DBarChart.cxx b/chart2/source/view/charttypes/GL3DBarChart.cxx
index ec5855d6670a..cd2738460ad2 100755
--- a/chart2/source/view/charttypes/GL3DBarChart.cxx
+++ b/chart2/source/view/charttypes/GL3DBarChart.cxx
@@ -570,11 +570,7 @@ GL3DBarChart::GL3DBarChart(
osl_getSystemTime(&maDataUpdateStartTime);
osl_getSystemTime(&maDataUpdateEndTime);
}
- Size aSize;
- if (mpWindow)
- {
- aSize = mpWindow->GetSizePixel();
- }
+ Size aSize = mpWindow->GetSizePixel();
mpRenderer->SetSize(aSize);
mpWindow->setRenderer(this);
mpWindow->getContext().makeCurrent();
@@ -602,7 +598,7 @@ GL3DBarChart::~GL3DBarChart()
joinRenderThread();
- if(mbValidContext && mpWindow)
+ if(mbValidContext)
mpWindow->setRenderer(NULL);
}