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>
diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx
index 20cd26c..9074f43 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 )