diff options
author | Khaled Hosny <khaled@libreoffice.org> | 2023-09-03 19:00:22 +0300 |
---|---|---|
committer | خالد حسني <khaled@libreoffice.org> | 2023-09-03 23:26:07 +0200 |
commit | cc7d6211bc01e5ec84dbad542605d2e93dea925c (patch) | |
tree | ec39a4d32957c8a1ad07f0e1fc0648e6cca9a3cb /starmath | |
parent | 2d47c824cd31294899fa24989b3d7bd4f98dcdee (diff) |
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: خالد حسني <khaled@libreoffice.org>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/view.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
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: |