sw/source/uibase/lingu/olmenu.cxx |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

New commits:
commit f9a56d3c52e43dce5a4a56a79d16401e209c7dfd
Author:     Rashesh <rashesh.pa...@collabora.com>
AuthorDate: Fri Jan 31 14:00:21 2025 +0530
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Mon Feb 17 08:40:05 2025 +0100

    sw: lokit: don't activate standard.dic
    
    - in online, standard.dic is not required and causes confusion to the
      user
    
    Change-Id: I79a66e3479a35a0ace90dc4c30f3c479526f0fb7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180979
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    (cherry picked from commit 769de908b837d8fca0109cd833f7b4f64a5e8ff4)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181168
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>

diff --git a/sw/source/uibase/lingu/olmenu.cxx 
b/sw/source/uibase/lingu/olmenu.cxx
index b501bd45fc14..101d970c7f99 100644
--- a/sw/source/uibase/lingu/olmenu.cxx
+++ b/sw/source/uibase/lingu/olmenu.cxx
@@ -320,7 +320,7 @@ SwSpellPopup::SwSpellPopup(
         // words could be added.
         uno::Reference< linguistic2::XDictionary >  xDic( 
LinguMgr::GetStandardDic() );
         if (xDic.is())
-            xDic->setActive( true );
+            xDic->setActive(!comphelper::LibreOfficeKit::isActive());
 
         m_aDics = xDicList->getDictionaries();
 
@@ -362,8 +362,9 @@ SwSpellPopup::SwSpellPopup(
         }
     }
 
-    m_xPopupMenu->EnableItem(m_nAddMenuId, (nItemId - MN_DICTIONARIES_START) > 
1);
-    m_xPopupMenu->EnableItem(m_nAddId, (nItemId - MN_DICTIONARIES_START) == 1);
+    sal_uInt16 nDiff = nItemId - MN_DICTIONARIES_START;
+    m_xPopupMenu->EnableItem(m_nAddMenuId, nDiff > 2);
+    m_xPopupMenu->EnableItem(m_nAddId, nDiff == 2);
 
     //ADD NEW LANGUAGE MENU ITEM
 

Reply via email to