[PATCH libreoffice-4-0] fix for fdo#62090 Mid function regression
Noel Power (via Code Review)
gerrit at gerrit.libreoffice.org
Tue Apr 16 03:37:38 PDT 2013
Hi,
I have submitted a patch for review:
https://gerrit.libreoffice.org/3408
To pull it, you can do:
git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/08/3408/1
fix for fdo#62090 Mid function regression
Change-Id: Ia6a73d6a44a34345b512922037d01b8b40ac24a8
(cherry picked from commit 14d452d0c2874f47f0b6ac1cd1c725195d5d69a9)
---
M basic/source/runtime/methods.cxx
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index 858f844..7f724b1 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -1262,7 +1262,7 @@
{
aResultStr = aArgStr;
aResultStr.remove( nStartPos, nLen );
- aResultStr.insert( nStartPos, rPar.Get(4)->GetOUString().getStr(), nLen);
+ aResultStr.insert( nStartPos, rPar.Get(4)->GetOUString().getStr(), std::min(nLen, rPar.Get(4)->GetOUString().getLength()));
}
rPar.Get(1)->PutString( aResultStr.makeStringAndClear() );
--
To view, visit https://gerrit.libreoffice.org/3408
To unsubscribe, visit https://gerrit.libreoffice.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia6a73d6a44a34345b512922037d01b8b40ac24a8
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: libreoffice-4-0
Gerrit-Owner: Noel Power <noel.power at suse.com>
Gerrit-Reviewer: Julien Nabet <serval2412 at yahoo.fr>
More information about the LibreOffice
mailing list