summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-12-15 14:15:39 +0100
committerMichael Stahl <mstahl@redhat.com>2015-12-15 17:44:36 +0100
commit45300b43fe44bb01494fecbaa290d846d476cdb0 (patch)
tree6873a69299a535a8c4b039b3a877b1c257131ef5
parentb0fc09daf1086423a9bd457d9a2c043e7ff41451 (diff)
chart2: fix obvious mis-use of wrong member in XMLFilter::impl_Import()
... so we get a BaseURI set. Change-Id: I01176a8a0b0a1f4386f4d58bdf36bd5cb29cf3e5
-rw-r--r--chart2/source/model/filter/XMLFilter.cxx3
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();