summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-03-20 11:48:28 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-03-20 15:22:19 +0100
commit2333786aa0eaf70c45c80e546239fb3565b1b4e7 (patch)
tree13ee645e052e0912f76a168fcbf5e554e8e32de7 /sw
parent682e2891409ca87ad89e8df43d577dc8d85c48b3 (diff)
Resolves: tdf#116474 bring hidden text property under undo control
Change-Id: I7bc18e8bc34f2a759371950f9d20dce48f472131 Reviewed-on: https://gerrit.libreoffice.org/51634 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/frmedt/fews.cxx3
1 files changed, 2 insertions, 1 deletions
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);
}
}