chart47: #i109770# #i110253# don't paint anything if no model is available
This commit is contained in:
parent
2a1490743f
commit
417c5223db
1 changed files with 5 additions and 0 deletions
|
@ -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() )
|
||||
|
|
Loading…
Reference in a new issue