diff options
author | Mert Tumer <mert.tumer@collabora.com> | 2020-10-08 13:37:07 +0300 |
---|---|---|
committer | Mert Tumer <mert.tumer@collabora.com> | 2020-10-09 21:30:26 +0200 |
commit | 7aaa9ef2e5edaf468f116449776433e98fb1a2f3 (patch) | |
tree | f5f81527535507de15109320d71fcfc4639f7632 /sw/source | |
parent | e116efdeff09e8ce9a45d459af53216015cd5347 (diff) |
Added optional parameter Enabled for uno:SpellOnline
Change-Id: I3578b0a002ea2cdcc7893972607f26732ce545ea
Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103982
Tested-by: Jenkins
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/uibase/uiview/view0.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sw/source/uibase/uiview/view0.cxx b/sw/source/uibase/uiview/view0.cxx index 259721707259..59165885e5bd 100644 --- a/sw/source/uibase/uiview/view0.cxx +++ b/sw/source/uibase/uiview/view0.cxx @@ -531,7 +531,11 @@ void SwView::ExecViewOptions(SfxRequest &rReq) break; case SID_AUTOSPELL_CHECK: - if( STATE_TOGGLE == eState ) + const SfxPoolItem* pItem; + + if (pArgs->HasItem(FN_PARAM_1, &pItem)) + bSet = static_cast<const SfxBoolItem*>(pItem)->GetValue(); + else if( STATE_TOGGLE == eState ) { bFlag = !pOpt->IsOnlineSpell(); bSet = bFlag; |