From 8a3ed4d2835bf441c578d480a8cc8f2c31231996 Mon Sep 17 00:00:00 2001 From: Muhammet Kara Date: Mon, 30 Dec 2019 16:14:20 +0300 Subject: Restore mxModel invariant in ChartColorWrapper::operator() As per discussion on https://gerrit.libreoffice.org/c/core/+/85111 Change-Id: I2cebe65ef8a03da95527ce882e7538f958fcdfbb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85995 Tested-by: Jenkins Reviewed-by: Muhammet Kara --- chart2/source/controller/sidebar/ChartColorWrapper.cxx | 6 ------ 1 file changed, 6 deletions(-) (limited to 'chart2') diff --git a/chart2/source/controller/sidebar/ChartColorWrapper.cxx b/chart2/source/controller/sidebar/ChartColorWrapper.cxx index 31808b1a292b..5b0654b2d86b 100644 --- a/chart2/source/controller/sidebar/ChartColorWrapper.cxx +++ b/chart2/source/controller/sidebar/ChartColorWrapper.cxx @@ -72,12 +72,6 @@ ChartColorWrapper::ChartColorWrapper( void ChartColorWrapper::operator()(const OUString& , const NamedColor& rColor) { - if (!mxModel.is()) - { - SAL_WARN("chart2", "Invalid reference to mxModel"); - return; - } - css::uno::Reference xPropSet = getPropSet(mxModel); if (!xPropSet.is()) -- cgit