diff options
author | Niklas Nebel <nn@openoffice.org> | 2001-01-22 13:09:21 +0000 |
---|---|---|
committer | Niklas Nebel <nn@openoffice.org> | 2001-01-22 13:09:21 +0000 |
commit | f9f8dbba4bc143f3ace5bee12145be2bf2b034e1 (patch) | |
tree | 731a994a642f868289c2b20fe43ddfa8d3d6dd7d /sc/source/core | |
parent | 5a325a3fab56022260f883db6b62348a3280dfa4 (diff) |
#82991# InsertRow: update drawing layer after inserting
Diffstat (limited to 'sc/source/core')
-rw-r--r-- | sc/source/core/data/document.cxx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index ec726d8ea78f..039d37e0f502 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -2,9 +2,9 @@ * * $RCSfile: document.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: er $ $Date: 2000-12-13 12:43:43 $ + * last change: $Author: nn $ $Date: 2001-01-22 14:09:21 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -569,11 +569,19 @@ BOOL ScDocument::InsertRow( USHORT nStartCol, USHORT nStartTab, ScAddress( nEndCol, MAXROW, nEndTab )), 0, nSize, 0 ); UpdateReference( URM_INSDEL, nStartCol, nStartRow, nStartTab, nEndCol, MAXROW, nEndTab, - 0, nSize, 0 ); + 0, nSize, 0, NULL, FALSE ); // without drawing objects for (i=nStartTab; i<=nEndTab; i++) if (pTab[i]) pTab[i]->InsertRow( nStartCol, nEndCol, nStartRow, nSize ); + // #82991# UpdateRef for drawing layer must be after inserting, + // when the new row heights are known. + for (i=nStartTab; i<=nEndTab; i++) + if (pTab[i]) + pTab[i]->UpdateDrawRef( URM_INSDEL, + nStartCol, nStartRow, nStartTab, nEndCol, MAXROW, nEndTab, + 0, nSize, 0 ); + if ( pChangeTrack && pChangeTrack->IsInDeleteUndo() ) { // durch Restaurierung von Referenzen auf geloeschte Bereiche ist // ein neues Listening faellig, bisherige Listener wurden in |