summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2019-07-27 20:35:14 -0400
committerMichael Meeks <michael.meeks@collabora.com>2019-12-16 13:49:32 +0100
commit550c0a666e119c911b311c96f9185c11d8465dcb (patch)
tree49c373847a11ff0670ef7b2b52fd9faf40160447 /sc
parent3592d49eff0d063b26250ce32eea138af3108b79 (diff)
sc: spelldialog: lock before resetting the editview
Painting also resets the view and that can happen asynchronously. When the spelldialog gets focus it resets the editview if it detects it has changed, which happens when, for example, another view is created. Change-Id: Ib23e332e4ba069e05787d1cc03ae23fe657b12c8 (cherry picked from commit d91d940ad0319e0cc6e0080a903ac0a7e9f6ba88) Reviewed-on: https://gerrit.libreoffice.org/85003 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/spelldialog.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/ui/view/spelldialog.cxx b/sc/source/ui/view/spelldialog.cxx
index f46080430263..76865b3924c0 100644
--- a/sc/source/ui/view/spelldialog.cxx
+++ b/sc/source/ui/view/spelldialog.cxx
@@ -98,6 +98,8 @@ void ScSpellDialogChildWindow::ApplyChangedSentence( const svx::SpellPortions& r
void ScSpellDialogChildWindow::GetFocus()
{
+ SolarMutexGuard aGuard;
+
if( IsSelectionChanged() )
{
Reset();