[Libreoffice-commits] core.git: Branch 'libreoffice-4-2-0' - basic/source
Julien Nabet
serval2412 at yahoo.fr
Tue Jan 21 09:26:38 PST 2014
basic/source/runtime/methods.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit de19819871a5ce1faabb9dced0e40df97d18e168
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sun Jan 19 21:56:40 2014 +0100
Resolves: fdo#73771 Non-standard behaviour for Function Mid
Change-Id: I90be516235228574dc219447a0eef3a34f83bee2
Reviewed-on: https://gerrit.libreoffice.org/7539
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
(cherry picked from commit ff48f28f71609b0ab4e6b8bc79818f765e48fddd)
(cherry picked from commit 7713dfc9b50b88cf2548d49e65b099a6a81e9d65)
Reviewed-on: https://gerrit.libreoffice.org/7577
Reviewed-by: Michael Stahl <mstahl at redhat.com>
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
Reviewed-by: Eike Rathke <erack at redhat.com>
Tested-by: Eike Rathke <erack at redhat.com>
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index 5351606..ac4b9c4 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -1302,7 +1302,8 @@ RTLFUNC(Mid)
{
nLen = aArgStr.getLength() - nStartPos;
}
- aResultStr = aArgStr.copy( nStartPos, nLen );
+ if (nLen > 0)
+ aResultStr = aArgStr.copy( nStartPos, nLen );
}
rPar.Get(0)->PutString( aResultStr );
}
More information about the Libreoffice-commits
mailing list