[Libreoffice-commits] core.git: Branch 'feature/formula-core-rework' - sc/source

Kohei Yoshida kohei.yoshida at gmail.com
Fri Mar 15 11:30:04 PDT 2013


 sc/source/core/data/column3.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit f03493f9fc3c8135e0e37a148136c0c43e109b07
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date:   Fri Mar 15 14:32:02 2013 -0400

    Actually these should be MAXROWCOUNT; MAXROW would be one element too short.
    
    Change-Id: Id0be194bef04a5f32e1624c6c6910db7ec3ddb36

diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index 0ba6f01..9537bf6 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)


More information about the Libreoffice-commits mailing list