diff options
Diffstat (limited to 'sw/source/core/txtnode/txtedt.cxx')
-rw-r--r-- | sw/source/core/txtnode/txtedt.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/txtnode/txtedt.cxx b/sw/source/core/txtnode/txtedt.cxx index 56b0c0c466cf..9c83bdfcb335 100644 --- a/sw/source/core/txtnode/txtedt.cxx +++ b/sw/source/core/txtnode/txtedt.cxx @@ -1063,7 +1063,7 @@ bool SwTextNode::Spell(SwSpellArgs* pArgs) // selection accordingly. const sal_Unicode* pChar = rWord.getStr(); sal_Int32 nLeft = 0; - while (pChar && *pChar++ == CH_TXTATR_INWORD) + while (*pChar++ == CH_TXTATR_INWORD) ++nLeft; pChar = rWord.getLength() ? rWord.getStr() + rWord.getLength() - 1 : nullptr; sal_Int32 nRight = 0; |