diff options
author | Ingrid Halama <iha@openoffice.org> | 2010-01-14 13:36:46 +0000 |
---|---|---|
committer | Ingrid Halama <iha@openoffice.org> | 2010-01-14 13:36:46 +0000 |
commit | a7062ae8ee7e24437b490abea605524a2d3a8486 (patch) | |
tree | 1baa41a3df4f884f9832a6a5e627c53e1a45622e /chart2/source | |
parent | 60fdd54890f04949f1b82d4f7a4903e65f165a7c (diff) |
#i108313# & #i108281# pie charts without series crashes office
Diffstat (limited to 'chart2/source')
-rw-r--r-- | chart2/source/tools/ChartTypeHelper.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/tools/ChartTypeHelper.cxx b/chart2/source/tools/ChartTypeHelper.cxx index 9e521fa76dae..243e30093ff3 100644 --- a/chart2/source/tools/ChartTypeHelper.cxx +++ b/chart2/source/tools/ChartTypeHelper.cxx @@ -549,7 +549,7 @@ sal_Int32 ChartTypeHelper::getNumberOfDisplayedSeries( if( (xChartTypeProp->getPropertyValue( C2U("UseRings")) >>= bDonut) && !bDonut ) { - return 1; + return nNumberOfSeries>0 ? 1 : 0; } } } |