summaryrefslogtreecommitdiff
path: root/chart2/source/controller/main/DragMethod_PieSegment.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/controller/main/DragMethod_PieSegment.cxx')
-rw-r--r--chart2/source/controller/main/DragMethod_PieSegment.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/chart2/source/controller/main/DragMethod_PieSegment.cxx b/chart2/source/controller/main/DragMethod_PieSegment.cxx
index 100846ba9357..3ba3e5a9f205 100644
--- a/chart2/source/controller/main/DragMethod_PieSegment.cxx
+++ b/chart2/source/controller/main/DragMethod_PieSegment.cxx
@@ -19,7 +19,7 @@
#include "DragMethod_PieSegment.hxx"
#include <DrawViewWrapper.hxx>
-
+#include <ChartModel.hxx>
#include <strings.hrc>
#include <ResId.hxx>
#include <ObjectIdentifier.hxx>
@@ -38,7 +38,7 @@ using ::basegfx::B2DVector;
DragMethod_PieSegment::DragMethod_PieSegment( DrawViewWrapper& rDrawViewWrapper
, const OUString& rObjectCID
- , const Reference< frame::XModel >& xChartModel )
+ , const rtl::Reference<::chart::ChartModel>& xChartModel )
: DragMethod_Base( rDrawViewWrapper, rObjectCID, xChartModel )
, m_aStartVector(100.0,100.0)
, m_fInitialOffset(0.0)
@@ -112,11 +112,11 @@ bool DragMethod_PieSegment::EndSdrDrag(bool /*bCopy*/)
try
{
- Reference< frame::XModel > xChartModel( getChartModel() );
+ rtl::Reference<::chart::ChartModel> xChartModel( getChartModel() );
if( xChartModel.is() )
{
Reference< beans::XPropertySet > xPointProperties(
- ObjectIdentifier::getObjectPropertySet( m_aObjectCID, xChartModel ) );
+ ObjectIdentifier::getObjectPropertySet( m_aObjectCID, uno::Reference<chart2::XChartDocument>(xChartModel) ) );
if( xPointProperties.is() )
xPointProperties->setPropertyValue( "Offset", uno::Any( m_fAdditionalOffset+m_fInitialOffset ));
}