starmath/source/view.cxx |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit cc7d6211bc01e5ec84dbad542605d2e93dea925c
Author:     Khaled Hosny <kha...@libreoffice.org>
AuthorDate: Sun Sep 3 19:00:22 2023 +0300
Commit:     خالد حسني <kha...@libreoffice.org>
CommitDate: Sun Sep 3 23:26:07 2023 +0200

    starmath: Disable formula cursor toolbar button when inline editing is 
enabled
    
    It is ignore when inline editing is enable, so better disable it to make
    it clear.
    
    Change-Id: Ie79a1c16109109e213658d44a6ffc0bff2291c7a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156487
    Tested-by: Jenkins
    Reviewed-by: خالد حسني <kha...@libreoffice.org>

diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index 3e1e4909ea1d..97332a4810c1 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -2144,8 +2144,10 @@ void SmViewShell::GetState(SfxItemSet &rSet)
 
         case SID_FORMULACURSOR:
             {
-                SmModule *pp = SM_MOD();
-                rSet.Put(SfxBoolItem(nWh, 
pp->GetConfig()->IsShowFormulaCursor()));
+                if (IsInlineEditEnabled())
+                    rSet.DisableItem(nWh);
+                else
+                    rSet.Put(SfxBoolItem(nWh, 
SM_MOD()->GetConfig()->IsShowFormulaCursor()));
             }
             break;
         case SID_ELEMENTSDOCKINGWINDOW:

Reply via email to