[Libreoffice-commits] .: svl/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Dec 18 10:24:32 PST 2012


 svl/source/numbers/zforscan.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 91d3c0ce2b808e917ee45f18f2c40a58329d2c19
Author: Eike Rathke <erack at redhat.com>
Date:   Tue Dec 18 19:16:43 2012 +0100

    resolved fdo#58179 ImpSvNumberformatScan::RemoveQuotes: both ...
    
    Bug crept in with String to OUString change of
    1599fc9e54a7c4855bee1c30d92dd1f5be05f530
    
    Change-Id: I25a6b40de10785bc861fa2b353edada0e4a623c9

diff --git a/svl/source/numbers/zforscan.cxx b/svl/source/numbers/zforscan.cxx
index 0b88129..24c14a7 100644
--- a/svl/source/numbers/zforscan.cxx
+++ b/svl/source/numbers/zforscan.cxx
@@ -2853,7 +2853,7 @@ sal_Int32 ImpSvNumberformatScan::RemoveQuotes( OUString& rStr )
         sal_Int32 n = rStr.getLength() - 1;
         if ( c == '"' && rStr[n] == '"' )
         {
-            rStr = rStr.copy(1,n);
+            rStr = rStr.copy( 1, n-1);
             return 2;
         }
         else if ( c == '\\' )


More information about the Libreoffice-commits mailing list