diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-08-29 20:58:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-08-30 12:36:20 +0200 |
commit | afe3a9313fb35179231f14aa0ba5c9f357e09fa0 (patch) | |
tree | c7cd1702bf0cd477180aa69c527f166ce85ba18f /editeng | |
parent | 91b1f91ca7d41a79647a0bca40fed276ec51c859 (diff) |
cid#1607168 Overflowed constant
Change-Id: I18856301045008938d5222ceb6774ff6fbb557fa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172634
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit5.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/editeng/source/editeng/impedit5.cxx b/editeng/source/editeng/impedit5.cxx index fff6d21d8373..11ed1ac8e77f 100644 --- a/editeng/source/editeng/impedit5.cxx +++ b/editeng/source/editeng/impedit5.cxx @@ -692,9 +692,11 @@ void ImpEditEngine::RemoveCharAttribs( sal_Int32 nPara, sal_uInt16 nWhich, bool ( !nWhich || ( pAttr->GetItem()->Which() == nWhich ) ) ) { pNode->GetCharAttribs().Remove(nAttr); - nAttr--; } - nAttr++; + else + { + nAttr++; + } pAttr = GetAttrib(rAttrs, nAttr); } |