storing the chart doc while loading is a bad idea, fdo#57530

There seems to be no obvious reason why we would need to store the chart
doc during xls import. The chart test docs don't show any difference
without this call.

This speeds up xls chart import quite a bit. With the test doc from the
bug report I'm able to open the doc nearly instantly now.

Change-Id: I0b80462b9d1c405ab1d4cf456e12ebfe4428db98
This commit is contained in:
Markus Mohrhard
2012-12-22 14:26:43 +01:00
parent 8e25844811
commit bb97ecdbcc
-1
View File
@@ -1674,7 +1674,6 @@ void XclImpChartObj::DoPostProcessSdrObj( XclImpDffConverter& rDffConv, SdrObjec
Reference< XEmbedPersist > xPersist( xEmbObj, UNO_QUERY_THROW );
Reference< XModel > xModel( xEmbObj->getComponent(), UNO_QUERY_THROW );
mxChart->Convert( xModel, rDffConv, xPersist->getEntryName(), rSdrObj.GetLogicRect() );
xPersist->storeOwn();
}
catch( const Exception& )
{