[Libreoffice-commits] core.git: sc/source

Ivan Timofeev timofeev.i.s at gmail.com
Thu Mar 14 21:45:23 PDT 2013


 sc/source/core/data/global.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c0da80faaf1ee70b503b4a7bb437a51219259a49
Author: Ivan Timofeev <timofeev.i.s at gmail.com>
Date:   Fri Mar 15 08:40:55 2013 +0400

    fix "simplify copy"
    
    the second argument is a count
    
    Change-Id: I1b6d7db8ba3ac83ef0be091c25e28ad93375d432

diff --git a/sc/source/core/data/global.cxx b/sc/source/core/data/global.cxx
index 3428997..1a199c7 100644
--- a/sc/source/core/data/global.cxx
+++ b/sc/source/core/data/global.cxx
@@ -831,7 +831,7 @@ void ScGlobal::EraseQuotes( OUString& rString, sal_Unicode cQuote, bool bUnescap
 {
     if ( IsQuoted( rString, cQuote ) )
     {
-        rString = rString.copy( 1, rString.getLength() - 1 );
+        rString = rString.copy( 1, rString.getLength() - 2 );
         if (bUnescapeEmbedded)
         {
             sal_Unicode pQ[3];


More information about the Libreoffice-commits mailing list