sc/source/ui/undo/undoblk3.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 4844a3e0e2ce63c142fd49634d8fe7c9d359f022
Author:     Ashod Nakashian <ashod.nakash...@collabora.co.uk>
AuthorDate: Sat Aug 10 11:33:58 2019 -0400
Commit:     Ashod Nakashian <ashnak...@gmail.com>
CommitDate: Mon Dec 23 00:53:40 2019 +0100

    sc: correctly update spelling markers on undo/redo
    
    (cherry picked from commit 62eb6210895b24855b077fb0d89f182beac4a43c)
    Reviewed-on: https://gerrit.libreoffice.org/85005
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Michael Meeks <michael.me...@collabora.com>
    (cherry picked from commit a05fd0eb30767471c6d20c93e0fb8b3ff7c7eaee)
    
    Change-Id: I946cede7967f454813f717273c4114d31167c8c6
    Reviewed-on: https://gerrit.libreoffice.org/85681
    Tested-by: Jenkins
    Reviewed-by: Ashod Nakashian <ashnak...@gmail.com>

diff --git a/sc/source/ui/undo/undoblk3.cxx b/sc/source/ui/undo/undoblk3.cxx
index 4e8add1ee461..68aeede027ef 100644
--- a/sc/source/ui/undo/undoblk3.cxx
+++ b/sc/source/ui/undo/undoblk3.cxx
@@ -1234,6 +1234,10 @@ void ScUndoConversion::DoChange( ScDocument* pRefDoc, 
const ScAddress& rCursorPo
         pRefDoc->CopyToDocument( 0,      0,      0,
                                  rDoc.MaxCol(), rDoc.MaxRow(), nTabCount-1,
                                  InsertDeleteFlags::CONTENTS, bMulti, rDoc, 
&aMarkData );
+
+        // Reset the spell checking results to re-check on paint, otherwise
+        // we show the previous spelling markers (or lack thereof on 
misspellings).
+        ScDocShell::GetViewData()->GetActiveWin()->ResetAutoSpell();
         pDocShell->PostPaintGridAll();
     }
     else
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to