sw/source/core/frmedt/fews.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 2028cb82837393ac0ae283a41ac7187d203085dc
Author: Caolán McNamara <caol...@redhat.com>
Date:   Tue Mar 20 11:48:28 2018 +0000

    Resolves: tdf#116474 bring hidden text property under undo control
    
    Change-Id: I7bc18e8bc34f2a759371950f9d20dce48f472131
    Reviewed-on: https://gerrit.libreoffice.org/51635
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Miklos Vajna <vmik...@collabora.co.uk>

diff --git a/sw/source/core/frmedt/fews.cxx b/sw/source/core/frmedt/fews.cxx
index 05f011bdb9de..e1e8f46c78ab 100644
--- a/sw/source/core/frmedt/fews.cxx
+++ b/sw/source/core/frmedt/fews.cxx
@@ -521,7 +521,8 @@ void SwFEShell::InsertLabel( const SwLabelType eType, const 
OUString &rText, con
             SvxCharHiddenItem aHidden(true, RES_CHRATR_HIDDEN);
             SfxItemSet aSet(GetDoc()->GetAttrPool(), {{aHidden.Which(), 
aHidden.Which()}});
             aSet.Put(aHidden);
-            pTextNode->SetAttr(aSet, nIndex, nIndex + 1);
+            SwPaM aPam(*pTextNode, nIndex, *pTextNode, nIndex + 1);
+            SetAttrSet(aSet, SetAttrMode::DEFAULT, &aPam);
         }
     }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to