sc/source/core/data/cell2.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 967002c852b817ac06e723cff04037cc211b5c5b Author: Eike Rathke <er...@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 ); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits