chart47: #i109770# #i110253# don't paint anything if no model is available

This commit is contained in:
Ingrid Halama 2010-05-17 18:05:05 +02:00
parent 2a1490743f
commit 417c5223db

View file

@ -507,6 +507,11 @@ void ChartController::execute_Paint( const Rectangle& rRect )
{
try
{
uno::Reference< frame::XModel > xModel( m_aModel->getModel() );
DBG_ASSERT( xModel.is(), "ChartController::execute_Paint: have no model to paint");
if( !xModel.is() )
return;
//better performance for big data
uno::Reference< beans::XPropertySet > xProp( m_xChartView, uno::UNO_QUERY );
if( xProp.is() )