summaryrefslogtreecommitdiff
path: root/sw/source/core/access/accpara.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/access/accpara.cxx')
-rw-r--r--sw/source/core/access/accpara.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx
index 68f6b067be2a..d413cda631af 100644
--- a/sw/source/core/access/accpara.cxx
+++ b/sw/source/core/access/accpara.cxx
@@ -766,11 +766,8 @@ bool SwAccessibleParagraph::GetSentenceBoundary(
sal_Int32 nPos )
{
const sal_Unicode* pStr = rText.getStr();
- if (pStr)
- {
- while( nPos < rText.getLength() && pStr[nPos] == u' ' )
- nPos++;
- }
+ while( nPos < rText.getLength() && pStr[nPos] == u' ' )
+ nPos++;
GetPortionData().GetSentenceBoundary( rBound, nPos );
return true;