[Libreoffice-commits] .: Branch 'libreoffice-3-4' - sfx2/source
Michael Meeks
michael at kemper.freedesktop.org
Thu Apr 7 05:58:36 PDT 2011
sfx2/source/view/viewfrm.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit c0e6c6edb158c983809da3f238d6559f59c40ddd
Author: Michael Meeks <michael.meeks at novell.com>
Date: Thu Apr 7 13:57:31 2011 +0100
hide macro menu item when disabled to reduce confusion
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index 19c3d25..08f9e0c 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -3110,8 +3110,9 @@ void SfxViewFrame::MiscState_Impl(SfxItemSet &rSet)
if ( !aMiscOptions.IsExperimentalMode() ||
( strcmp(pName,"swriter") && strcmp(pName,"scalc") ) )
{
- rSet.DisableItem( nWhich );
- break;
+ rSet.DisableItem( nWhich );
+ rSet.Put(SfxVisibilityItem(nWhich, sal_False));
+ break;
}
::rtl::OUString sProperty(RTL_CONSTASCII_USTRINGPARAM("DispatchRecorderSupplier"));
More information about the Libreoffice-commits
mailing list