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>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user