[Libreoffice-commits] core.git: Branch 'libreoffice-6-0' - sw/source
Caolán McNamara
caolanm at redhat.com
Thu Apr 5 14:12:48 UTC 2018
sw/source/core/frmedt/fews.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 2028cb82837393ac0ae283a41ac7187d203085dc
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/51635
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos at 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);
}
}
More information about the Libreoffice-commits
mailing list