summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2019-11-16 13:30:30 +0100
committerTamás Zolnai <tamas.zolnai@collabora.com>2019-11-23 15:38:43 +0100
commita5b2583cfa41852d526ffe360e3887c71174744a (patch)
tree29abf74b8cab54061b7acc8e1b0aca9a8e3a53d7
parent50a6e53b896d160c968d142b64a9ed62dc65d5f5 (diff)
SpellingPopup: Move setting UPN_IS_GRAMMAR_INTERACTIVE to the constructor.
Change-Id: Ief5470e0a61f0ca40549ab6d3768c795c3f04510
-rw-r--r--sw/source/uibase/lingu/olmenu.cxx6
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()->