diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-03-24 14:32:22 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2022-04-05 13:35:38 +0200 |
commit | 70d72a9160e9fed04a284708450d0b458ea2091b (patch) | |
tree | 7c9d84b750fe3a50e1e072fe7e1444949f73687a | |
parent | 5156ff3ba73edf42bb36201fe82830e7b7415d59 (diff) |
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/+/132040
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
-rw-r--r-- | sw/source/core/text/itratr.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/text/itratr.cxx b/sw/source/core/text/itratr.cxx index bc39bccc995e..b69953288328 100644 --- a/sw/source/core/text/itratr.cxx +++ b/sw/source/core/text/itratr.cxx @@ -443,7 +443,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; } } } |