summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/ui/docvw/edtwin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx
index 5a45f43ecac7..2e981c4e78ee 100644
--- a/sw/source/ui/docvw/edtwin.cxx
+++ b/sw/source/ui/docvw/edtwin.cxx
@@ -2396,7 +2396,7 @@ KEYINPUT_CHECKTABLE_INSDEL:
{
OUStringBuffer aBuf(m_aInBuffer);
comphelper::string::padToLength(aBuf,
- !m_aInBuffer.isEmpty() + aKeyEvent.GetRepeat() + 1, aCh);
+ m_aInBuffer.getLength() + aKeyEvent.GetRepeat() + 1, aCh);
m_aInBuffer = aBuf.makeStringAndClear();
bFlushCharBuffer = Application::AnyInput( VCL_INPUT_KEYBOARD );
bFlushBuffer = !bFlushCharBuffer;