summaryrefslogtreecommitdiff
path: root/xmloff/source/chart/SchXMLImport.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/chart/SchXMLImport.cxx')
-rw-r--r--xmloff/source/chart/SchXMLImport.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmloff/source/chart/SchXMLImport.cxx b/xmloff/source/chart/SchXMLImport.cxx
index ce11bea12497..ca1f63c02353 100644
--- a/xmloff/source/chart/SchXMLImport.cxx
+++ b/xmloff/source/chart/SchXMLImport.cxx
@@ -620,9 +620,10 @@ void SAL_CALL SchXMLImport::setTargetDocument( const uno::Reference< lang::XComp
uno::Reference< container::XChild > xChild( xChartDoc, uno::UNO_QUERY );
uno::Reference< chart2::data::XDataReceiver > xDataReceiver( xChartDoc, uno::UNO_QUERY );
- bool bHasOwnData = true;
if( xChild.is() && xDataReceiver.is())
{
+ bool bHasOwnData = true;
+
Reference< lang::XMultiServiceFactory > xFact( xChild->getParent(), uno::UNO_QUERY );
if( xFact.is() )
{