diff options
Diffstat (limited to 'chart2/source/view/axes/VPolarGrid.cxx')
-rw-r--r-- | chart2/source/view/axes/VPolarGrid.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chart2/source/view/axes/VPolarGrid.cxx b/chart2/source/view/axes/VPolarGrid.cxx index f64349d97662..7c49842640a7 100644 --- a/chart2/source/view/axes/VPolarGrid.cxx +++ b/chart2/source/view/axes/VPolarGrid.cxx @@ -20,6 +20,7 @@ #include "VPolarGrid.hxx" #include "VCartesianGrid.hxx" #include "Tickmarks.hxx" +#include <GridProperties.hxx> #include <PlottingPositionHelper.hxx> #include <ShapeFactory.hxx> #include <ObjectIdentifier.hxx> @@ -38,12 +39,11 @@ using namespace ::com::sun::star::chart2; using ::com::sun::star::uno::Reference; VPolarGrid::VPolarGrid( sal_Int32 nDimensionIndex, sal_Int32 nDimensionCount - , const uno::Sequence< Reference< beans::XPropertySet > > & rGridPropertiesList ) + , std::vector< rtl::Reference< ::chart::GridProperties > > aGridPropertiesList ) : VAxisOrGridBase( nDimensionIndex, nDimensionCount ) - , m_aGridPropertiesList( rGridPropertiesList ) - , m_pPosHelper( new PolarPlottingPositionHelper() ) + , m_aGridPropertiesList( std::move(aGridPropertiesList) ) { - PlotterBase::m_pPosHelper = m_pPosHelper.get(); + PlotterBase::m_pPosHelper = &m_aPosHelper; } VPolarGrid::~VPolarGrid() @@ -203,7 +203,7 @@ void VPolarGrid::create2DRadiusGrid( const rtl::Reference<SvxShapeGroupAnyD>& xL drawing::PointSequenceSequence aPoints(1); VPolarGrid::createLinePointSequence_ForAngleAxis( aPoints, rAngleTickInfos - , rAngleIncrement, rAngleScale, m_pPosHelper.get(), fLogicRadius, fLogicZ ); + , rAngleIncrement, rAngleScale, &m_aPosHelper, fLogicRadius, fLogicZ ); if(aPoints[0].getLength()) appendPointSequence( aAllPoints, aPoints ); } @@ -220,7 +220,7 @@ void VPolarGrid::createShapes() OSL_PRECOND(m_xLogicTarget.is()&&m_xFinalTarget.is(),"Axis is not proper initialized"); if(!(m_xLogicTarget.is()&&m_xFinalTarget.is())) return; - if(!m_aGridPropertiesList.hasElements()) + if(m_aGridPropertiesList.empty()) return; //create all scaled tickmark values |