summaryrefslogtreecommitdiff
path: root/sc/source/ui/app
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-07-26 17:55:18 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-07-26 17:57:35 -0400
commit03720cfb47870d5bf1619cae8c6ed66204b6415b (patch)
tree77c06d5462037793032ac2cb42366561d62a9789 /sc/source/ui/app
parentddd84d08c9bb6e00fbd9a73bd52a28688a8c1ba7 (diff)
Try to encapsulate the row flag array.
Eventually this flag array will go. The manual row height flag is the last one standing... Change-Id: I3f6be511eba50836d785ddf20ef08878797f6fe0
Diffstat (limited to 'sc/source/ui/app')
-rw-r--r--sc/source/ui/app/transobj.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/sc/source/ui/app/transobj.cxx b/sc/source/ui/app/transobj.cxx
index 0d35c45b8771..9d53c7dc5c39 100644
--- a/sc/source/ui/app/transobj.cxx
+++ b/sc/source/ui/app/transobj.cxx
@@ -632,9 +632,6 @@ void ScTransferObj::InitDocShell()
else
pDestDoc->SetColWidth( nCol, 0, pDoc->GetColWidth( nCol, nSrcTab ) );
- ScBitMaskCompressedArray< SCROW, sal_uInt8> & rDestRowFlags =
- pDestDoc->GetRowFlagsArrayModifiable(0);
-
for (SCROW nRow = nStartY; nRow <= nEndY; ++nRow)
{
sal_uInt8 nSourceFlags = pDoc->GetRowFlags(nRow, nSrcTab);
@@ -645,8 +642,8 @@ void ScTransferObj::InitDocShell()
pDestDoc->SetRowHeight( nRow, 0, pDoc->GetOriginalHeight( nRow, nSrcTab ) );
// if height was set manually, that flag has to be copied, too
- if ( nSourceFlags & CR_MANUALSIZE )
- rDestRowFlags.OrValue( nRow, CR_MANUALSIZE);
+ bool bManual = pDoc->IsManualRowHeight(nRow, nSrcTab);
+ pDestDoc->SetRowHeightManual(nRow, 0, bManual);
}
}