Commits

hr  committed 835f615

#i10000#: (merge error): proper initialization of xDataProvider

  • Participants
  • Parent commits 51eabb8

Comments (0)

Files changed (1)

File xmloff/source/chart/SchXMLSeries2Context.cxx

 	    }
     }
     
-    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 );