1
Index: sc/source/core/data/document.cxx
2
===================================================================
3
RCS file: /cvs/sc/sc/source/core/data/document.cxx,v
4
retrieving revision 1.79
5
diff -u -p -r1.79 document.cxx
6
--- sc/source/core/data/document.cxx 17 Jul 2007 13:32:52 -0000 1.79
7
+++ sc/source/core/data/document.cxx 29 Oct 2007 20:26:42 -0000
8
@@ -763,6 +810,10 @@ void ScDocument::DeleteRow( SCCOL nStart
9
ScAddress( nStartCol, nStartRow, nStartTab ),
10
ScAddress( nEndCol, MAXROW, nEndTab ) ) );
12
+ for ( i = nStartTab; i <= nEndTab; i++)
14
+ pDrawLayer->DeleteObjectsInArea( i, nStartCol, nStartRow, nEndCol, nStartRow+nSize);
16
if ( ValidRow(nStartRow+nSize) )
18
UpdateReference( URM_INSDEL, nStartCol, nStartRow+nSize, nStartTab,
19
@@ -914,6 +965,10 @@ void ScDocument::DeleteCol(SCROW nStartR
20
ScAddress( nStartCol, nStartRow, nStartTab ),
21
ScAddress( MAXCOL, nEndRow, nEndTab ) ) );
23
+ for ( i = nStartTab; i <= nEndTab; i++)
25
+ pDrawLayer->DeleteObjectsInArea( i, nStartCol, nStartRow, nStartCol+nSize, nEndRow );
27
if ( ValidCol(sal::static_int_cast<SCCOL>(nStartCol+nSize)) )
29
UpdateReference( URM_INSDEL, sal::static_int_cast<SCCOL>(nStartCol+nSize), nStartRow, nStartTab,
30
Index: sc/source/core/data/table2.cxx
31
===================================================================
32
RCS file: /cvs/sc/sc/source/core/data/table2.cxx,v
33
retrieving revision 1.37
34
diff -u -p -r1.37 table2.cxx
35
--- sc/source/core/data/table2.cxx 27 Feb 2007 12:09:28 -0000 1.37
36
+++ sc/source/core/data/table2.cxx 18 Oct 2007 20:46:19 -0000
37
@@ -1967,15 +1967,13 @@ BOOL ScTable::SetRowHeightRange( SCROW n
39
if (nEndRow-nStartRow < 20)
41
- // Whether new pixel size will differ from old pixel size in any row.
42
- ScCompressedArrayIterator< SCROW, USHORT> aIter( *pRowHeight,
43
- nStartRow, nEndRow);
45
+ for (SCROW nRow = nStartRow; nRow <= nEndRow; ++nRow)
47
- if (*aIter != nNewHeight)
48
- bChanged = (nNewPix != (long) (*aIter * nPPTY));
49
- } while (!bChanged && aIter.NextRange());
50
- pRowHeight->SetValue( nStartRow, nEndRow, nNewHeight);
52
+ if (pRowHeight->GetValue( nRow ))
53
+ bChanged = (nNewPix != (long) (pRowHeight->GetValue( nRow ) * nPPTY));
54
+ SetRowHeight( nRow, nNewHeight );