summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chart2/source/controller/main/ChartController.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx
index 430c560dead2..b2b8dbdc9720 100644
--- a/chart2/source/controller/main/ChartController.cxx
+++ b/chart2/source/controller/main/ChartController.cxx
@@ -1359,12 +1359,12 @@ void ChartController::executeDispatch_SourceData()
// Ask parent document to create new data provider
css::uno::Reference< com::sun::star::chart2::XDataProviderAccess > xCreatorDoc(
rModel.getParent(), uno::UNO_QUERY );
- OSL_ENSURE( xCreatorDoc.is(), "Invalid XDataProviderAccess" );
+ SAL_WARN_IF( !xCreatorDoc.is(), "chart2.main", "Invalid XDataProviderAccess" );
if ( xCreatorDoc.is() )
{
uno::Reference< data::XDataProvider > xDataProvider = xCreatorDoc->createDataProvider();
- OSL_ENSURE( xCreatorDoc.is(), "Data provider was not created" );
+ SAL_WARN_IF( !xDataProvider.is(), "chart2.main", "Data provider was not created" );
if ( xDataProvider.is() )
{
rModel.attachDataProvider(xDataProvider);