summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-03-15 14:32:02 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-03-15 22:12:41 -0400
commite7c6d50cbe5f4b78294d046299c153f2e4b50498 (patch)
tree995424d338481db0b173b05bb14311293f395984 /sc/source
parent4adcb80e0a69e2d1724ecd7aad521c994e2303dc (diff)
Actually these should be MAXROWCOUNT; MAXROW would be one element too short.
Change-Id: Id0be194bef04a5f32e1624c6c6910db7ec3ddb36
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/core/data/column3.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index 0ba6f01c7b19..9537bf6d38d0 100644
--- a/sc/source/core/data/column3.cxx
+++ b/sc/source/core/data/column3.cxx
@@ -202,7 +202,7 @@ void ScColumn::FreeAll()
// Text width should keep a logical empty range of 0-MAXROW when the cell array is empty.
maTextWidths.clear();
- maTextWidths.resize(MAXROW);
+ maTextWidths.resize(MAXROWCOUNT);
CellStorageModified();
}
@@ -263,7 +263,7 @@ void ScColumn::DeleteRow( SCROW nStartRow, SCSIZE nSize )
// Shift the text width array too (before the broadcast).
maTextWidths.erase(nStartRow, nEndRow);
- maTextWidths.resize(MAXROW);
+ maTextWidths.resize(MAXROWCOUNT);
ScAddress aAdr( nCol, 0, nTab );
ScHint aHint( SC_HINT_DATACHANGED, aAdr, NULL ); // only areas (ScBaseCell* == NULL)