diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-03-15 11:10:39 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-03-15 11:37:08 -0400 |
commit | 3a78c5b9898f70ca0163501ae2b583a7cb76d51f (patch) | |
tree | c13951c423f0f85b07b4050f1b2aba5600088412 /sc | |
parent | 431c4536ce58410d6dd3e199185bd128bac624ef (diff) |
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
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/column3.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 ); |