diff options
Diffstat (limited to 'sw/source/ui/cctrl/actctrl.cxx')
-rw-r--r-- | sw/source/ui/cctrl/actctrl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/cctrl/actctrl.cxx b/sw/source/ui/cctrl/actctrl.cxx index d4a8d0eeb7bf..43bae1046cb1 100644 --- a/sw/source/ui/cctrl/actctrl.cxx +++ b/sw/source/ui/cctrl/actctrl.cxx @@ -82,12 +82,12 @@ void NoSpaceEdit::KeyInput(const KeyEvent& rEvt) void NoSpaceEdit::Modify() { Selection aSel = GetSelection(); - String sTemp = GetText(); + OUString sTemp = GetText(); for(sal_uInt16 i = 0; i < sForbiddenChars.Len(); i++) { sTemp = comphelper::string::remove(sTemp, sForbiddenChars.GetChar(i)); } - sal_uInt16 nDiff = GetText().Len() - sTemp.Len(); + sal_Int32 nDiff = GetText().getLength() - sTemp.getLength(); if(nDiff) { aSel.setMin(aSel.getMin() - nDiff); |