summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2012-07-04 21:27:41 +0200
committerEike Rathke <erack@redhat.com>2012-07-04 21:28:47 +0200
commit967002c852b817ac06e723cff04037cc211b5c5b (patch)
treec4bbd8c9cb6d415fa8232fd0d934fa43e074a56c /sc
parentbd493f15a5d9478739368e48f598d2cd7ed4ea30 (diff)
fixed wrong string copy logic in ScFormulaCell::CompileDBFormula()
Change-Id: Ib87cff1ddff02de073b1c09703e1b550b7a3a740
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/cell2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/cell2.cxx b/sc/source/core/data/cell2.cxx
index fa3ac1d7d574..16088a6c83d7 100644
--- a/sc/source/core/data/cell2.cxx
+++ b/sc/source/core/data/cell2.cxx
@@ -1601,7 +1601,7 @@ void ScFormulaCell::CompileDBFormula( bool bCreateFormulaString )
if ( GetMatrixFlag() != MM_NONE && !aFormula.isEmpty() )
{
if ( aFormula[ aFormula.getLength()-1 ] == '}' )
- aFormula = aFormula.copy( aFormula.getLength()-1 , 1 );
+ aFormula = aFormula.copy( 0, aFormula.getLength()-1 );
if ( aFormula[0] == '{' )
aFormula = aFormula.copy( 1 );
}