diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-08-20 08:15:38 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-08-20 08:15:38 +0000 |
commit | 069f4bf8213b0dfe896d63da4701093ac09bf320 (patch) | |
tree | 1988bf26866276fa886f0c7610471d3d33b1e208 /sc/source/ui/view/drawutil.cxx | |
parent | dc2abf34e109458bf4feb6cbc25aad8b320a3fb5 (diff) |
INTEGRATION: CWS rowlimit2 (1.4.4); FILE MERGED
2004/07/30 16:59:44 er 1.4.4.1: #i28834# reduce memory consumption of increased row limit; compressed arrays for flags and heights
Diffstat (limited to 'sc/source/ui/view/drawutil.cxx')
-rw-r--r-- | sc/source/ui/view/drawutil.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sc/source/ui/view/drawutil.cxx b/sc/source/ui/view/drawutil.cxx index 9669d2475cc6..7e5e7fbcbdee 100644 --- a/sc/source/ui/view/drawutil.cxx +++ b/sc/source/ui/view/drawutil.cxx @@ -2,9 +2,9 @@ * * $RCSfile: drawutil.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: obo $ $Date: 2004-06-04 11:59:44 $ + * last change: $Author: rt $ $Date: 2004-08-20 09:15:38 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -101,9 +101,12 @@ void ScDrawUtil::CalcScale( ScDocument* pDoc, SCTAB nTab, nTwipsX += (long) nWidth; nPixelX += ScViewData::ToPixel( nWidth, nPPTX ); } - for (SCROW j=nStartRow; j<nEndRow; j++) + ScCoupledCompressedArrayIterator< SCROW, BYTE, USHORT> aIter( + pDoc->GetRowFlagsArray( nTab), nStartRow, nEndRow-1, CR_HIDDEN, 0, + pDoc->GetRowHeightArray( nTab)); + for ( ; aIter; ++aIter ) { - USHORT nHeight = pDoc->GetRowHeight(j,nTab); + USHORT nHeight = *aIter; nTwipsY += (long) nHeight; nPixelY += ScViewData::ToPixel( nHeight, nPPTY ); } |