summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2012-12-18 19:16:43 +0100
committerEike Rathke <erack@redhat.com>2012-12-18 19:25:15 +0100
commit9525bf5c0704c7a27b3ee6249d33d875abb51bc1 (patch)
treef0a11edb42367b52fe89ca7b1e5580b648e75afc
parent2a1943b15234980d906511ed06fb3e14b3933a00 (diff)
resolved fdo#58179 ImpSvNumberformatScan::RemoveQuotes: both ...
Bug crept in with String to OUString change of 1599fc9e54a7c4855bee1c30d92dd1f5be05f530 Change-Id: I25a6b40de10785bc861fa2b353edada0e4a623c9 (cherry picked from commit 91d3c0ce2b808e917ee45f18f2c40a58329d2c19)
-rw-r--r--svl/source/numbers/zforscan.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/numbers/zforscan.cxx b/svl/source/numbers/zforscan.cxx
index 0b8812946c58..24c14a739b09 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 == '\\' )