Kaydet (Commit) 2333786a authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#116474 bring hidden text property under undo control

Change-Id: I7bc18e8bc34f2a759371950f9d20dce48f472131
Reviewed-on: https://gerrit.libreoffice.org/51634Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 682e2891
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment