From cc7d6211bc01e5ec84dbad542605d2e93dea925c Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sun, 3 Sep 2023 19:00:22 +0300 Subject: starmath: Disable formula cursor toolbar button when inline editing is enabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: خالد حسني --- starmath/source/view.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'starmath') 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: -- cgit