diff options
-rw-r--r-- | sw/source/core/access/accpara.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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; |