[Libreoffice-commits] .: sc/source
Eike Rathke
erack at kemper.freedesktop.org
Wed Jul 4 12:28:51 PDT 2012
sc/source/core/data/cell2.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 967002c852b817ac06e723cff04037cc211b5c5b
Author: Eike Rathke <erack at redhat.com>
Date: Wed Jul 4 21:27:41 2012 +0200
fixed wrong string copy logic in ScFormulaCell::CompileDBFormula()
Change-Id: Ib87cff1ddff02de073b1c09703e1b550b7a3a740
diff --git a/sc/source/core/data/cell2.cxx b/sc/source/core/data/cell2.cxx
index fa3ac1d..16088a6 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 );
}
More information about the Libreoffice-commits
mailing list