diff options
Diffstat (limited to 'chart2/source/view/axes/VPolarCoordinateSystem.cxx')
-rw-r--r-- | chart2/source/view/axes/VPolarCoordinateSystem.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chart2/source/view/axes/VPolarCoordinateSystem.cxx b/chart2/source/view/axes/VPolarCoordinateSystem.cxx index 1fee84175444..16c2d152f96a 100644 --- a/chart2/source/view/axes/VPolarCoordinateSystem.cxx +++ b/chart2/source/view/axes/VPolarCoordinateSystem.cxx @@ -48,15 +48,16 @@ uno::Sequence< sal_Int32 > VPolarCoordinateSystem::getCoordinateSystemResolution if( aResolution.getLength() >= 2 ) { + auto pResolution = aResolution.getArray(); if( getPropertySwapXAndYAxis() ) { - aResolution[0]/=2;//radius - aResolution[1]*=4;//outer circle resolution + pResolution[0]/=2;//radius + pResolution[1]*=4;//outer circle resolution } else { - aResolution[0]*=4;//outer circle resolution - aResolution[1]/=2;//radius + pResolution[0]*=4;//outer circle resolution + pResolution[1]/=2;//radius } } |