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

Kohei Yoshida kohei.yoshida at gmail.com
Fri Mar 15 08:08:58 PDT 2013


 sc/source/core/data/column3.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a5e43258112c5836bd1291cde1dc80fb465bfafc
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date:   Fri Mar 15 11:10:39 2013 -0400

    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

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


More information about the Libreoffice-commits mailing list