summaryrefslogtreecommitdiff
path: root/editeng/source
diff options
context:
space:
mode:
Diffstat (limited to 'editeng/source')
-rw-r--r--editeng/source/editeng/textconv.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/editeng/textconv.cxx b/editeng/source/editeng/textconv.cxx
index 307d0e8fc974..f843f8330873 100644
--- a/editeng/source/editeng/textconv.cxx
+++ b/editeng/source/editeng/textconv.cxx
@@ -478,7 +478,7 @@ void TextConvWrapper::ChangeText( const OUString &rNewText,
}
// end of string also terminates non-matching char sequence
- if (rOrigText[nIndex] == rNewText[nPos] || nPos == nConvTextLen)
+ if (nPos == nConvTextLen || rOrigText[nIndex] == rNewText[nPos])
{
// substring that needs to be replaced found?
if (nChgPos>=0 && nConvChgPos>=0)