diff options
Diffstat (limited to 'sw/source/ui/lingu/hhcwrp.cxx')
-rw-r--r-- | sw/source/ui/lingu/hhcwrp.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/lingu/hhcwrp.cxx b/sw/source/ui/lingu/hhcwrp.cxx index 4f5de524200a..042f3b31f9c5 100644 --- a/sw/source/ui/lingu/hhcwrp.cxx +++ b/sw/source/ui/lingu/hhcwrp.cxx @@ -272,7 +272,7 @@ void SwHHCWrapper::ChangeText( const OUString &rNewText, nIndex = static_cast< xub_StrLen >( rOrigText.getLength() ); } - if (rOrigText.getStr()[nIndex] == rNewText[nPos] || + if (rOrigText[nIndex] == rNewText[nPos] || nPos == nConvTextLen /* end of string also terminates non-matching char sequence */) { // substring that needs to be replaced found? |