diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/access/accpara.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx index 722e2bb6a6fb..2c3fe1c8ffb6 100644 --- a/sw/source/core/access/accpara.cxx +++ b/sw/source/core/access/accpara.cxx @@ -785,7 +785,7 @@ bool SwAccessibleParagraph::GetSentenceBoundary( const sal_Unicode* pStr = rText.getStr(); if (pStr) { - while( pStr[nPos] == sal_Unicode(' ') && nPos < rText.getLength()) + while( nPos < rText.getLength() && pStr[nPos] == sal_Unicode(' ') ) nPos++; } |