[Libreoffice-commits] core.git: sw/source

Caolán McNamara caolanm at redhat.com
Tue Mar 20 14:22:43 UTC 2018


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

New commits:
commit 2333786aa0eaf70c45c80e546239fb3565b1b4e7
Author: Caolán McNamara <caolanm at 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/51634
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/core/frmedt/fews.cxx b/sw/source/core/frmedt/fews.cxx
index fbcf8ea149b0..8265610e695f 100644
--- a/sw/source/core/frmedt/fews.cxx
+++ b/sw/source/core/frmedt/fews.cxx
@@ -522,7 +522,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);
         }
     }
 


More information about the Libreoffice-commits mailing list