diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-01-14 12:33:24 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-01-14 12:33:46 +0100 |
commit | c447d9ba8c7d40670c59a9ec9d45f32a36c1efcd (patch) | |
tree | 5e1325849cef93b42d6ae9bb12c6560c956d810b /chart2 | |
parent | fcc8db1d2be9a25f79cbcc14043b495d240bb8bf (diff) |
Some cppcheck cleaning
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/main/ChartView.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx index 3e5df1871b72..1750879eaef0 100644 --- a/chart2/source/view/main/ChartView.cxx +++ b/chart2/source/view/main/ChartView.cxx @@ -1428,7 +1428,7 @@ awt::Rectangle ChartView::impl_createDiagramAndContent( SeriesPlotterContainer& //use first coosys only so far; todo: calculate for more than one coosys if we have more in future //todo: this is just a workaround at the moment for pie and donut labels bool bIsPieOrDonut = lcl_IsPieOrDonut(xDiagram); - if( !bIsPieOrDonut && rVCooSysList.size() > 0 ) + if( !bIsPieOrDonut && (!rVCooSysList.empty()) ) { VCoordinateSystem* pVCooSys = rVCooSysList[0]; pVCooSys->createMaximumAxesLabels(); |