summaryrefslogtreecommitdiff
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:12:26 +0200
commit2028cb82837393ac0ae283a41ac7187d203085dc (patch)
tree727829426895a12aaf2783a2786e434cd2650999
parentb8bb9a94266035b0d4579a7dbb3252a85fc896bc (diff)
Resolves: tdf#116474 bring hidden text property under undo control
Change-Id: I7bc18e8bc34f2a759371950f9d20dce48f472131 Reviewed-on: https://gerrit.libreoffice.org/51635 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
-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 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);
}
}