sw/source/core/crsr/crstrvl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit d0d45b3736aa236a61e3aecb0824d2c943b2b0dd Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Wed Sep 11 09:16:40 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Wed Sep 11 16:05:43 2024 +0200 cid#1607478 Overflowed constant aFormMap is std::pair<SwPosition, sal_uInt32> and GetTabIndex returns sal_uInt32, so change nCurTabIndex to sal_uInt32 and continue use of SAL_MAX_UINT32 Change-Id: Ie404e8b649f37f753f943f90a648114f080ed6b2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173185 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/sw/source/core/crsr/crstrvl.cxx b/sw/source/core/crsr/crstrvl.cxx index f09b1b146c5e..d3fe6b1b9bd2 100644 --- a/sw/source/core/crsr/crstrvl.cxx +++ b/sw/source/core/crsr/crstrvl.cxx @@ -964,7 +964,7 @@ void SwCursorShell::GotoFormControl(bool bNext) SwTextContentControl* pTCC = !pFieldMark ? CursorInsideContentControl() : nullptr; auto pCC = pTCC ? pTCC->GetContentControl().GetContentControl() : nullptr; - const sal_Int32 nCurTabIndex = pCC && pCC->GetTabIndex() ? pCC->GetTabIndex() : SAL_MAX_UINT32; + const sal_uInt32 nCurTabIndex = pCC && pCC->GetTabIndex() ? pCC->GetTabIndex() : SAL_MAX_UINT32; SwPosition nCurPos(*GetCursor()->GetPoint()); if (pFieldMark)