summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/core/data/global.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/global.cxx b/sc/source/core/data/global.cxx
index 2d439ee88893..342899745373 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( 0, rString.getLength() - 1 ).copy( 1 );
+ rString = rString.copy( 1, rString.getLength() - 1 );
if (bUnescapeEmbedded)
{
sal_Unicode pQ[3];