sw/source/core/view/viewsh.cxx |   20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

New commits:
commit e1193efffbe8310e9d13e049f47865b31a2d14e4
Author:     Paris Oplopoios <paris.oplopo...@collabora.com>
AuthorDate: Wed Jun 21 01:59:50 2023 +0300
Commit:     Paris Oplopoios <parisop...@gmail.com>
CommitDate: Wed Jun 21 02:00:11 2023 +0200

    sw: Fix spell checking having no view separation in tiled mode
    
    Turning spell checking on or off for a single view would turn it on/off
    for every view which is correct behavior normally but not in tiled mode
    because different views might want different view options
    
    Change-Id: Ib422f692e97618cfba6a7cb8b2a4f2b3f20a0ca2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153370
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Paris Oplopoios <parisop...@gmail.com>

diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx
index 9c80d43f36a6..ef1d7317ef73 100644
--- a/sw/source/core/view/viewsh.cxx
+++ b/sw/source/core/view/viewsh.cxx
@@ -2502,17 +2502,19 @@ void SwViewShell::ImplApplyViewOptions( const 
SwViewOption &rOpt )
     if( !bOnlineSpellChgd )
         return;
 
-    bool bOnlineSpl = rOpt.IsOnlineSpell();
-    for(SwViewShell& rSh : GetRingContainer())
+    if ( !comphelper::LibreOfficeKit::isActive() )
     {
-        if(&rSh == this)
-            continue;
-        rSh.mpOpt->SetOnlineSpell( bOnlineSpl );
-        vcl::Window *pTmpWin = rSh.GetWin();
-        if( pTmpWin )
-            pTmpWin->Invalidate();
+        bool bOnlineSpl = rOpt.IsOnlineSpell();
+        for(SwViewShell& rSh : GetRingContainer())
+        {
+            if(&rSh == this)
+                continue;
+            rSh.mpOpt->SetOnlineSpell( bOnlineSpl );
+            vcl::Window *pTmpWin = rSh.GetWin();
+            if( pTmpWin )
+                pTmpWin->Invalidate();
+        }
     }
-
 }
 
 void SwViewShell::SetUIOptions( const SwViewOption &rOpt )

Reply via email to