summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-15 16:45:40 +0100
committerMichael Stahl <mstahl@redhat.com>2014-01-15 20:52:59 +0000
commit3367c68cff05114e0243313f974a0c4f56c39e99 (patch)
tree5ba968b0b81e31617443cff1d28f26f423a40b46
parentb0dd584efde8b9d75fb822a4ff63e96ca36b42c1 (diff)
String::Len was used in a non-bool context here
...so 79f52d249fe043e6ec54be6ffa0c71a748920394 "convert sw/source/ui/inc/e*.hxx from String to OUString" should have converted it to call OUString::getLength, not OUString::isEmpty. Change-Id: Ie5633a1ff87094eb22179f14aab4b1508735a747 (cherry picked from commit d0e4d1f01ef44474145469b7203ad3232e36de63) Reviewed-on: https://gerrit.libreoffice.org/7444 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
-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;