From 3a78c5b9898f70ca0163501ae2b583a7cb76d51f Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Fri, 15 Mar 2013 11:10:39 -0400 Subject: Oops the erase() method takes start and end positions. The second parameter has to be the absolute end position, not the size from the start position. Change-Id: I310ec52697d0521a82810889f6fe861471279645 --- sc/source/core/data/column3.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sc') diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx index 62f013582cb3..0ba6f01c7b19 100644 --- a/sc/source/core/data/column3.cxx +++ b/sc/source/core/data/column3.cxx @@ -262,7 +262,7 @@ void ScColumn::DeleteRow( SCROW nStartRow, SCSIZE nSize ) // There are cells below the deletion point. Shift their row positions. // Shift the text width array too (before the broadcast). - maTextWidths.erase(nStartRow, nSize); + maTextWidths.erase(nStartRow, nEndRow); maTextWidths.resize(MAXROW); ScAddress aAdr( nCol, 0, nTab ); -- cgit