diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-02-02 20:57:08 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-02-02 21:07:55 +0000 |
commit | 7ca0d2d8e174225d93a8b9d91d45192c75d1f56c (patch) | |
tree | 480c27f07124ea91a94660787f6f112bcac023cf /chart2 | |
parent | 3e05f9844b538529307ac9cc18b06daf7e777abf (diff) |
coverity#1267657 Logically dead code
Change-Id: I50bb5d47c5f430818237308a691306dc097d245e
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/charttypes/BarChart.cxx | 3 |
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) |