diff options
author | Niklas Nebel <nn@openoffice.org> | 2001-04-20 17:53:41 +0000 |
---|---|---|
committer | Niklas Nebel <nn@openoffice.org> | 2001-04-20 17:53:41 +0000 |
commit | 776e299bdbc2ab27166165840a63a1d7e0973859 (patch) | |
tree | b2b572770a40682bff1675ebb0df5b37c97d787c /sc | |
parent | 27b2c073690a81b91906a3135669b2ea65db5e27 (diff) |
InvertBlockMark: If paint is locked, add repaint area instead
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/tabview3.cxx | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/sc/source/ui/view/tabview3.cxx b/sc/source/ui/view/tabview3.cxx index 69c26dde1617..bb6604e40222 100644 --- a/sc/source/ui/view/tabview3.cxx +++ b/sc/source/ui/view/tabview3.cxx @@ -2,9 +2,9 @@ * * $RCSfile: tabview3.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: nn $ $Date: 2001-03-20 16:51:58 $ + * last change: $Author: nn $ $Date: 2001-04-20 18:53:41 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -2157,9 +2157,18 @@ void ScTabView::InvertBlockMark(USHORT nBlockStartX, USHORT nBlockStartY, PutInOrder( nBlockStartY, nBlockEndY ); ScMarkData& rMark = aViewData.GetMarkData(); - ScDocument* pDoc = aViewData.GetDocument(); + ScDocShell* pDocSh = aViewData.GetDocShell(); + ScDocument* pDoc = pDocSh->GetDocument(); USHORT nTab = aViewData.GetTabNo(); + if ( pDocSh->GetLockCount() ) + { + // if paint is locked, avoid repeated inverting + // add repaint areas to paint lock data instead + pDocSh->PostPaint( nBlockStartX,nBlockStartY,nTab, nBlockEndX,nBlockEndY,nTab, PAINT_GRID ); + return; + } + #ifdef MAC BOOL bSingle = TRUE; #else |