sw/source/core/text/itratr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 88df06e5268ddfe3e0961d8fdbf4aaad1bfa3674 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Thu Mar 24 14:32:22 2022 +0000 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Mon Mar 28 10:18:13 2022 +0200 forcepoint#86 RES_TXTATR_UNKNOWN_CONTAINER item put at invalid index RES_CHRATR_BEGIN is 1, presumably RES_TXTATR_UNKNOWN_CONTAINER should be stored in the last index Change-Id: Id37fff41cbbccbc26fe5ccce6027014af7362729 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132039 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sw/source/core/text/itratr.cxx b/sw/source/core/text/itratr.cxx index f76f15254e9f..95f7929a0e14 100644 --- a/sw/source/core/text/itratr.cxx +++ b/sw/source/core/text/itratr.cxx @@ -444,7 +444,7 @@ static void InsertCharAttrs(SfxPoolItem const** pAttrs, SfxItemSet const& rItems } else if (nWhich == RES_TXTATR_UNKNOWN_CONTAINER) { - pAttrs[RES_CHRATR_END] = pItem; + pAttrs[RES_CHRATR_END - RES_CHRATR_BEGIN] = pItem; } } }