summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-03-20 11:48:28 +0000
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-04-05 16:23:29 +0200
commit85a92ab3510641afd475a2d5fdffa9d8b7abcd39 (patch)
tree0e4a44035f1374e7a9704b33d9117d06cc15180d /sw/source
parente82beb0812f2f4742b80ba1f63a026cbe77f5b25 (diff)
Resolves: tdf#116474 bring hidden text property under undo control
Change-Id: I7bc18e8bc34f2a759371950f9d20dce48f472131 Reviewed-on: https://gerrit.libreoffice.org/51636 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw/source')
-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 1208a71aa8cf..2d070d506a99 100644
--- a/sw/source/core/frmedt/fews.cxx
+++ b/sw/source/core/frmedt/fews.cxx
@@ -520,7 +520,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);
}
}