summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2015-10-08 17:07:44 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2015-10-08 17:10:04 +0300
commit998090bf54a8afd5fe9cfc3efdd30864c8e689e9 (patch)
tree5cc3d9004d122c74c7f8439abb543847143ac864
parent3e3a37ebdc14f709fc970b291a9869bac6f9ba35 (diff)
tdf#92341 Hide in grammar menu and fix label
Change-Id: I1cd5d8df76dddfa3a408c4b568f85bef04733be3
-rw-r--r--sw/source/uibase/lingu/olmenu.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/uibase/lingu/olmenu.cxx b/sw/source/uibase/lingu/olmenu.cxx
index b018074f9684..bda41ecf7786 100644
--- a/sw/source/uibase/lingu/olmenu.cxx
+++ b/sw/source/uibase/lingu/olmenu.cxx
@@ -244,7 +244,7 @@ OUString RetrieveLabelFromCommand( const OUString& aCmdURL )
{
for ( sal_Int32 i = 0; i < aPropSeq.getLength(); i++ )
{
- if ( aPropSeq[i].Name == "Name" )
+ if ( aPropSeq[i].Name == "Label" )
{
aPropSeq[i].Value >>= aStr;
break;
@@ -536,6 +536,7 @@ m_aInfo16( SW_RES(IMG_INFO_16) )
SetHelpId( MN_IGNORE_SELECTION, HID_LINGU_IGNORE_SELECTION);
EnableItem( MN_AUTOCORR, false );
+ EnableItem( MN_AUTO_CORRECT_DLG, false );
uno::Reference< linguistic2::XLanguageGuessing > xLG = SW_MOD()->GetLanguageGuesser();
m_nGuessLangWord = LANGUAGE_NONE;