tdf#93747 sw IsTableMode setStyle: don't affect unselected cells

Change-Id: I88fcb97adbe790f1c2de469195818d7e27bcc41f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123651
Tested-by: Jenkins
Reviewed-by: Justin Luth <justin_luth@sil.org>
diff --git a/sw/source/core/edit/edfcol.cxx b/sw/source/core/edit/edfcol.cxx
index f62e3ab..f42df25 100644
--- a/sw/source/core/edit/edfcol.cxx
+++ b/sw/source/core/edit/edfcol.cxx
@@ -2204,6 +2204,9 @@ void SwEditShell::SetTextFormatColl(SwTextFormatColl *pFormat,
    GetDoc()->GetIDocumentUndoRedo().StartUndo(SwUndoId::SETFMTCOLL, &aRewriter);
    for(SwPaM& rPaM : GetCursor()->GetRingContainer())
    {
        // If in table cells select mode, ignore the cells that aren't actually selected
        if (IsTableMode() && !rPaM.HasMark())
            continue;

        if ( !rPaM.HasReadonlySel( GetViewOptions()->IsFormView() ) )
        {