sw/source/core/edit/edfcol.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit b043a5b953f9da553a725606a1795d5fd0860ca3
Author:     Justin Luth <justin_l...@sil.org>
AuthorDate: Fri Oct 15 11:36:48 2021 +0200
Commit:     Justin Luth <justin_l...@sil.org>
CommitDate: Fri Oct 15 17:55:09 2021 +0200

    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_l...@sil.org>

diff --git a/sw/source/core/edit/edfcol.cxx b/sw/source/core/edit/edfcol.cxx
index f62e3ab67f34..f42df251b21c 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() ) )
         {

Reply via email to