diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2019-07-27 20:35:14 -0400 |
---|---|---|
committer | Ashod Nakashian <ashnakash@gmail.com> | 2019-12-22 16:24:05 +0100 |
commit | 778327126025a14243e2bdf6d2e6adc29943cd64 (patch) | |
tree | 60efe5486797c893217bc3760d65844608607946 /sc | |
parent | 2f8b3ef21cb66470c2774a5dc0cccbaf7d22681c (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.
(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>
(cherry picked from commit 550c0a666e119c911b311c96f9185c11d8465dcb)
Change-Id: Ib23e332e4ba069e05787d1cc03ae23fe657b12c8
Reviewed-on: https://gerrit.libreoffice.org/85679
Tested-by: Jenkins
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/spelldialog.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/view/spelldialog.cxx b/sc/source/ui/view/spelldialog.cxx index 21a459259f66..d9780959a5c3 100644 --- a/sc/source/ui/view/spelldialog.cxx +++ b/sc/source/ui/view/spelldialog.cxx @@ -34,6 +34,7 @@ #include <undoblk.hxx> #include <gridwin.hxx> #include <refupdatecontext.hxx> +#include <vcl/svapp.hxx> SFX_IMPL_CHILDWINDOW_WITHID( ScSpellDialogChildWindow, SID_SPELL_DIALOG ) @@ -96,6 +97,8 @@ void ScSpellDialogChildWindow::ApplyChangedSentence( const svx::SpellPortions& r void ScSpellDialogChildWindow::GetFocus() { + SolarMutexGuard aGuard; + if( IsSelectionChanged() ) { Reset(); |