chart2/source/view/main/ChartView.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit c447d9ba8c7d40670c59a9ec9d45f32a36c1efcd Author: Julien Nabet <[email protected]> Date: Sat Jan 14 12:33:24 2012 +0100 Some cppcheck cleaning diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx index 3e5df18..1750879 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(); _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
