diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2019-11-16 13:30:30 +0100 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2019-11-23 15:38:43 +0100 |
commit | a5b2583cfa41852d526ffe360e3887c71174744a (patch) | |
tree | 29abf74b8cab54061b7acc8e1b0aca9a8e3a53d7 /sw | |
parent | 50a6e53b896d160c968d142b64a9ed62dc65d5f5 (diff) |
SpellingPopup: Move setting UPN_IS_GRAMMAR_INTERACTIVE to the constructor.
Change-Id: Ief5470e0a61f0ca40549ab6d3768c795c3f04510
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/lingu/olmenu.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/uibase/lingu/olmenu.cxx b/sw/source/uibase/lingu/olmenu.cxx index ccb4beeb9895..23435104bfc5 100644 --- a/sw/source/uibase/lingu/olmenu.cxx +++ b/sw/source/uibase/lingu/olmenu.cxx @@ -578,6 +578,8 @@ SwSpellPopup::SwSpellPopup( checkRedline(); m_xPopupMenu->RemoveDisabledEntries(true, true); + + SvtLinguConfig().SetProperty( UPN_IS_GRAMMAR_INTERACTIVE, uno::makeAny( true )); } SwSpellPopup::~SwSpellPopup() {} @@ -697,10 +699,6 @@ void SwSpellPopup::Execute( sal_uInt16 nId ) } else if (nId == m_nSpellDialogId) { - if (m_bGrammarResults) - { - SvtLinguConfig().SetProperty( UPN_IS_GRAMMAR_INTERACTIVE, uno::makeAny( true )); - } m_pSh->Left(CRSR_SKIP_CHARS, false, 1, false ); { m_pSh->GetView().GetViewFrame()->GetDispatcher()-> |