sc/source/core/data/cell2.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit dc8e971ec1f3156b5051ea227f9a4195e2d73970 Author: Eike Rathke <[email protected]> Date: Wed Jul 4 21:27:41 2012 +0200 fixed wrong string copy logic in ScFormulaCell::CompileDBFormula() Change-Id: Ib87cff1ddff02de073b1c09703e1b550b7a3a740 (cherry picked from commit 8f99bd9a6ec60e2b10e29d745d590a9128d53dbc) diff --git a/sc/source/core/data/cell2.cxx b/sc/source/core/data/cell2.cxx index e9713d0..5c4986e 100644 --- a/sc/source/core/data/cell2.cxx +++ b/sc/source/core/data/cell2.cxx @@ -1625,7 +1625,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 [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
