diff options
-rw-r--r-- | chart2/source/model/filter/XMLFilter.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chart2/source/model/filter/XMLFilter.cxx b/chart2/source/model/filter/XMLFilter.cxx index ba2746d2f1b1..2ffe00d63ad7 100644 --- a/chart2/source/model/filter/XMLFilter.cxx +++ b/chart2/source/model/filter/XMLFilter.cxx @@ -364,7 +364,8 @@ sal_Int32 XMLFilter::impl_Import( // Set base URI and Hierarchical Name OUString aHierarchName, aBaseUri; - uno::Reference< frame::XModel > xModel( m_xSourceDoc, uno::UNO_QUERY ); + // why retrieve this from the model when it's availabe as rMediaDescriptor? + uno::Reference<frame::XModel> const xModel(m_xTargetDoc, uno::UNO_QUERY); if( xModel.is() ) { uno::Sequence< beans::PropertyValue > aModProps = xModel->getArgs(); |