editeng/source/accessibility/AccessibleEditableTextPara.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 2851dc3f5dc0f7a42f5938d9ff07c0b8a246b96e Author: Stephan Bergmann <[email protected]> Date: Sun Jan 28 11:12:11 2018 +0100 Remove useless check against SAL_MAX_INT32 ...changed from a check against USHRT_MAX in 3cbfcee36dd16e451d76c561eaaaee0ff29b01a5 "xub_StrLen and tools/string.hxx final straw" Change-Id: I8311803f9b5d1a78d8039d4810b0ae3cfdd27c53 Reviewed-on: https://gerrit.libreoffice.org/48770 Tested-by: Jenkins <[email protected]> Reviewed-by: Stephan Bergmann <[email protected]> diff --git a/editeng/source/accessibility/AccessibleEditableTextPara.cxx b/editeng/source/accessibility/AccessibleEditableTextPara.cxx index c555deae0ab3..567e8f6d3b22 100644 --- a/editeng/source/accessibility/AccessibleEditableTextPara.cxx +++ b/editeng/source/accessibility/AccessibleEditableTextPara.cxx @@ -611,7 +611,7 @@ namespace accessibility bool AccessibleEditableTextPara::GetAttributeRun( sal_Int32& nStartIndex, sal_Int32& nEndIndex, sal_Int32 nIndex ) { - DBG_ASSERT(nIndex >= 0 && nIndex <= SAL_MAX_INT32, + DBG_ASSERT(nIndex >= 0, "AccessibleEditableTextPara::GetAttributeRun: index value overflow"); DBG_ASSERT(GetParagraphIndex() >= 0 && GetParagraphIndex() <= SAL_MAX_INT32, _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
