summaryrefslogtreecommitdiff
path: root/chart2/source
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source')
-rw-r--r--chart2/source/model/template/ChartTypeTemplate.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/chart2/source/model/template/ChartTypeTemplate.cxx b/chart2/source/model/template/ChartTypeTemplate.cxx
index 063335a3e626..e9ff7c04ca24 100644
--- a/chart2/source/model/template/ChartTypeTemplate.cxx
+++ b/chart2/source/model/template/ChartTypeTemplate.cxx
@@ -514,11 +514,8 @@ void ChartTypeTemplate::createCoordinateSystems(
if( bOk )
return;
// there are coordinate systems but they do not fit. So overwrite them.
- }
- //copy as much info from former coordinate system as possible:
- if( !aCoordinateSystems.empty() )
- {
+ //copy as much info from former coordinate system as possible:
rtl::Reference< BaseCoordinateSystem > xOldCooSys( aCoordinateSystems[0] );
sal_Int32 nMaxDimensionCount = std::min( xCooSys->getDimension(), xOldCooSys->getDimension() );