diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2009-07-31 11:23:54 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2009-07-31 11:23:54 +0000 |
commit | db82809ff63d391907278e45e55616db1bfdbf06 (patch) | |
tree | 1701d07d1982ab8e79aaf4cb24ba984623fdc5ce /xmloff/source | |
parent | 4804c61a7fd696db38d417a2f56a1abd0b0775cc (diff) |
#i10000#: (merge error): proper initialization of xDataProvider
Diffstat (limited to 'xmloff/source')
-rw-r--r-- | xmloff/source/chart/SchXMLSeries2Context.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xmloff/source/chart/SchXMLSeries2Context.cxx b/xmloff/source/chart/SchXMLSeries2Context.cxx index f1c33d7dabba..4633a149e4df 100644 --- a/xmloff/source/chart/SchXMLSeries2Context.cxx +++ b/xmloff/source/chart/SchXMLSeries2Context.cxx @@ -665,7 +665,10 @@ void SchXMLSeries2Context::EndElement() } } - Reference< chart2::data::XDataProvider > xDataProvider( mrImportHelper.GetDataProvider( mxNewDoc )); + Reference< chart2::data::XDataProvider > xDataProvider; + if ( mxNewDoc.is() ) { + xDataProvider = mxNewDoc->getDataProvider(); + } for( std::vector< DomainInfo >::reverse_iterator aIt( aDomainInfos.rbegin() ); aIt!= aDomainInfos.rend(); ++aIt ) { DomainInfo aDomainInfo( *aIt ); |