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

New commits:
commit 098e8d6f111ca9d7680ed1eec00522fed6487e95
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:02 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/+/153343
    Tested-by: Jenkins
    Reviewed-by: Paris Oplopoios <parisop...@gmail.com>

diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx
index 20cd26c17fb3..9074f43ab8b4 100644
--- a/sw/source/core/view/viewsh.cxx
+++ b/sw/source/core/view/viewsh.cxx
@@ -2433,17 +2433,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