From 417c5223db83a7f5932ecbba12bed63e0f5c6f41 Mon Sep 17 00:00:00 2001 From: Ingrid Halama Date: Mon, 17 May 2010 18:05:05 +0200 Subject: [PATCH] chart47: #i109770# #i110253# don't paint anything if no model is available --- chart2/source/controller/main/ChartController_Window.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chart2/source/controller/main/ChartController_Window.cxx b/chart2/source/controller/main/ChartController_Window.cxx index 7822c8c1cc21..284b3ff370cf 100644 --- a/chart2/source/controller/main/ChartController_Window.cxx +++ b/chart2/source/controller/main/ChartController_Window.cxx @@ -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() )