diff options
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/sidebar/ChartColorWrapper.cxx | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/chart2/source/controller/sidebar/ChartColorWrapper.cxx b/chart2/source/controller/sidebar/ChartColorWrapper.cxx index 4b2c7694e14d..b2ff6196916d 100644 --- a/chart2/source/controller/sidebar/ChartColorWrapper.cxx +++ b/chart2/source/controller/sidebar/ChartColorWrapper.cxx @@ -11,9 +11,7 @@ #include "ChartController.hxx" -#include <editeng/colritem.hxx> #include <svx/tbcontrl.hxx> -#include <svx/svxids.hrc> namespace chart { namespace sidebar { @@ -88,13 +86,14 @@ void ChartColorWrapper::updateData() if (!xPropSet.is()) return; - css::uno::Any aAny = xPropSet->getPropertyValue(maPropertyName); - sal_uInt32 nColor = 0; - aAny >>= nColor; - Color aColor(nColor); + css::util::URL aUrl; + aUrl.Complete = ".uno:FillColor"; - SvxColorItem aItem(aColor, SID_ATTR_FILL_COLOR); - mpControl->StateChanged(SID_ATTR_FILL_COLOR, SfxItemState::SET, &aItem); + css::frame::FeatureStateEvent aEvent; + aEvent.FeatureURL = aUrl; + aEvent.IsEnabled = true; + aEvent.State = xPropSet->getPropertyValue(maPropertyName); + mpControl->statusChanged(aEvent); } } } |