summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-02-02 20:57:08 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-02-02 21:07:55 +0000
commit7ca0d2d8e174225d93a8b9d91d45192c75d1f56c (patch)
tree480c27f07124ea91a94660787f6f112bcac023cf /chart2
parent3e05f9844b538529307ac9cc18b06daf7e777abf (diff)
coverity#1267657 Logically dead code
Change-Id: I50bb5d47c5f430818237308a691306dc097d245e
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/charttypes/BarChart.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/chart2/source/view/charttypes/BarChart.cxx b/chart2/source/view/charttypes/BarChart.cxx
index c75b1a628360..168fab66eedb 100644
--- a/chart2/source/view/charttypes/BarChart.cxx
+++ b/chart2/source/view/charttypes/BarChart.cxx
@@ -87,8 +87,7 @@ drawing::Direction3D BarChart::getPreferredDiagramAspectRatio() const
{
aRet = drawing::Direction3D(1.0,-1.0,1.0);
BarPositionHelper* pPosHelper = dynamic_cast<BarPositionHelper*>(&( this->getPlottingPositionHelper( MAIN_AXIS_INDEX) ) );
- assert(pPosHelper);
- if(pPosHelper)
+ if (pPosHelper)
{
drawing::Direction3D aScale( pPosHelper->getScaledLogicWidth() );
if(aScale.DirectionX!=0.0)