diff options
author | Paris Oplopoios <paris.oplopoios@collabora.com> | 2023-06-21 01:59:50 +0300 |
---|---|---|
committer | Paris Oplopoios <parisoplop@gmail.com> | 2023-06-21 02:00:02 +0200 |
commit | 098e8d6f111ca9d7680ed1eec00522fed6487e95 (patch) | |
tree | 66317d62dcd68bc0d1e3c0f71b9e9bd3b23685f9 /sw | |
parent | e321d85089fc1dd73cd1f1443a53226a25695194 (diff) |
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 <parisoplop@gmail.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/view/viewsh.cxx | 20 |
1 files changed, 11 insertions, 9 deletions
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 ) |