From 107a4740f63860f0901f51217b16cefa62a827ac Mon Sep 17 00:00:00 2001 From: Maxim Monastirsky Date: Mon, 13 Jul 2015 20:23:39 +0300 Subject: tdf#39478 Fix custom shapes status update In sw it was still returning a string item, although the slot type was changed to boolean back in 2005 with 4cce2a2f08238e1e03055877aa89bc755ec06f59. In sc the status update was simply missing. Change-Id: I8a6dd157d1e401754b3a9a93dc83458dcdd4f089 --- sc/source/ui/view/tabvwsh2.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'sc/source/ui/view') diff --git a/sc/source/ui/view/tabvwsh2.cxx b/sc/source/ui/view/tabvwsh2.cxx index 1efe8d62b7d8..fefe124b4b15 100644 --- a/sc/source/ui/view/tabvwsh2.cxx +++ b/sc/source/ui/view/tabvwsh2.cxx @@ -434,6 +434,18 @@ void ScTabViewShell::GetDrawState(SfxItemSet &rSet) case SID_OBJECT_SELECT: // wichtig fuer den ollen Control-Controller rSet.Put( SfxBoolItem( nWhich, nDrawSfxId == SID_OBJECT_SELECT && IsDrawSelMode() ) ); break; + + case SID_DRAWTBX_CS_BASIC: + case SID_DRAWTBX_CS_SYMBOL: + case SID_DRAWTBX_CS_ARROW: + case SID_DRAWTBX_CS_FLOWCHART: + case SID_DRAWTBX_CS_CALLOUT: + case SID_DRAWTBX_CS_STAR: + { + bool bCurrentActive = (nDrawSfxId == nWhich) && (aCurrShapeEnumCommand[ nWhich - SID_DRAWTBX_CS_BASIC ] == sDrawCustom); + rSet.Put( SfxBoolItem( nWhich, bCurrentActive ) ); + } + break; } nWhich = aIter.NextWhich(); } -- cgit