[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - sc/source

Ashod Nakashian (via logerrit) logerrit at kemper.freedesktop.org
Mon Dec 16 12:50:20 UTC 2019


 sc/source/ui/view/spelldialog.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 550c0a666e119c911b311c96f9185c11d8465dcb
Author:     Ashod Nakashian <ashod.nakashian at collabora.co.uk>
AuthorDate: Sat Jul 27 20:35:14 2019 -0400
Commit:     Michael Meeks <michael.meeks at collabora.com>
CommitDate: Mon Dec 16 13:49:32 2019 +0100

    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 at gmail.com>
    Reviewed-by: Michael Meeks <michael.meeks at collabora.com>

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();


More information about the Libreoffice-commits mailing list