sw/source/core/access/accpara.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 1fe4d37caa983dea9815082e3e955337a03034e9 Author: Colomban Wendling <cwendl...@hypra.fr> AuthorDate: Wed May 10 11:39:12 2023 +0200 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Wed May 17 16:19:00 2023 +0200 sw a11y: Replace some uses of magic numbers with proper constants Change-Id: I61b1924c22a66a08ac165546811daeaf20176954 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151650 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx index 832afcd02859..d00a49d10227 100644 --- a/sw/source/core/access/accpara.cxx +++ b/sw/source/core/access/accpara.cxx @@ -2326,7 +2326,7 @@ OUString SwAccessibleParagraph::getTextRange( } // now skip to previous word - if (nTextType==2 || nTextType == 3) + if (nTextType == AccessibleTextType::WORD || nTextType == AccessibleTextType::SENTENCE) { i18n::Boundary preBound = aBound; while(preBound.startPos==aBound.startPos && nIndex > 0) @@ -2409,7 +2409,7 @@ OUString SwAccessibleParagraph::getTextRange( sal_Bool bWord = sal_False; bWord = GetTextBoundary( aBound, rText, nIndex, nTextType ); - if (nTextType==2) + if (nTextType == AccessibleTextType::WORD) { Boundary nexBound=aBound;