[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - sw/source
Stephan Bergmann
sbergman at redhat.com
Wed Jan 15 12:53:22 PST 2014
sw/source/ui/docvw/edtwin.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 3367c68cff05114e0243313f974a0c4f56c39e99
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Jan 15 16:45:40 2014 +0100
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 at redhat.com>
Tested-by: Michael Stahl <mstahl at redhat.com>
diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx
index 5a45f43..2e981c4 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;
More information about the Libreoffice-commits
mailing list