[Libreoffice-commits] core.git: sw/source

Maxim Monastirsky momonasmon at gmail.com
Thu Oct 8 07:11:27 PDT 2015


 sw/source/uibase/lingu/olmenu.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 998090bf54a8afd5fe9cfc3efdd30864c8e689e9
Author: Maxim Monastirsky <momonasmon at gmail.com>
Date:   Thu Oct 8 17:07:44 2015 +0300

    tdf#92341 Hide in grammar menu and fix label
    
    Change-Id: I1cd5d8df76dddfa3a408c4b568f85bef04733be3

diff --git a/sw/source/uibase/lingu/olmenu.cxx b/sw/source/uibase/lingu/olmenu.cxx
index b018074..bda41ec 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;


More information about the Libreoffice-commits mailing list