diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2020-10-22 19:45:16 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2020-10-23 11:53:52 +0200 |
commit | 1a356dc0262022f8c0880d992f628507fdca408e (patch) | |
tree | 196eed8d0ae8152916dc4f2f6194f870520e5572 /sc/source/ui/view/tabview5.cxx | |
parent | fb8286255ff8d9872156a73dc0cf32ab04bf8f2a (diff) |
tdf#136694 - share spelling context across all ScGridWindows.
Adding new ScGridWindows later (as we do for split panes)
didn't call EnableAutoSpell on them; also duplicating the
spell-checking cache looks wasteful, so share it.
Change-Id: Ieb67bb292590a097bb5a59d369416a094c54c954
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104704
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sc/source/ui/view/tabview5.cxx')
-rw-r--r-- | sc/source/ui/view/tabview5.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sc/source/ui/view/tabview5.cxx b/sc/source/ui/view/tabview5.cxx index e504cf231698..a81772131d12 100644 --- a/sc/source/ui/view/tabview5.cxx +++ b/sc/source/ui/view/tabview5.cxx @@ -46,6 +46,7 @@ #include <docsh.hxx> #include <viewuno.hxx> #include <postit.hxx> +#include <spellcheckcontext.hxx> #include <vcl/settings.hxx> @@ -193,6 +194,10 @@ ScTabView::~ScTabView() pSelEngine.reset(); + if (mpSpellCheckCxt) + mpSpellCheckCxt->dispose(); + mpSpellCheckCxt.reset(); + mxInputHintOO.reset(); for (i=0; i<4; i++) pGridWin[i].disposeAndClear(); @@ -269,9 +274,9 @@ void ScTabView::DoAddWin( ScGridWindow* pWin ) if (pDrawView) { pDrawView->AddWindowToPaintView(pWin, nullptr); - pWin->DrawLayerCreated(); } + pWin->SetAutoSpellContext(mpSpellCheckCxt); } void ScTabView::TabChanged( bool bSameTabButMoved ) |