summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/colrowba.cxx
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej.hunt@collabora.com>2014-06-25 22:37:54 +0100
committerAndrzej Hunt <andrzej.hunt@collabora.com>2014-07-01 09:20:07 +0200
commit2c994d56492dd7b4cb342cbd3c8f7131f4b0b112 (patch)
treeacade33e8019ac68652fd3727776f884c4394919 /sc/source/ui/view/colrowba.cxx
parent35e84f3c02311023fcc775661d41e4d6725a0f5f (diff)
An early attempt at getting the column/rowbars cooperating with the tiled rendering-induced scaling/sizing changes. Change-Id: I15c2bc7210f26cededd63bc89dbd782e6e4c03b8
Diffstat (limited to 'sc/source/ui/view/colrowba.cxx')
-rw-r--r--sc/source/ui/view/colrowba.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/sc/source/ui/view/colrowba.cxx b/sc/source/ui/view/colrowba.cxx
index 3bc9c474d707..e8a9baff0f4e 100644
--- a/sc/source/ui/view/colrowba.cxx
+++ b/sc/source/ui/view/colrowba.cxx
@@ -83,7 +83,8 @@ sal_uInt16 ScColBar::GetEntrySize( SCCOLROW nEntryNo ) const
if (pDoc->ColHidden(static_cast<SCCOL>(nEntryNo), nTab))
return 0;
else
- return (sal_uInt16) ScViewData::ToPixel( pDoc->GetColWidth( static_cast<SCCOL>(nEntryNo), nTab ), pViewData->GetPPTX() );
+ return mTabInfo.mpRowInfo[0].pCellInfo[nEntryNo].nWidth / 16;
+// return (sal_uInt16) ScViewData::ToPixel( pDoc->GetColWidth( static_cast<SCCOL>(nEntryNo), nTab ), pViewData->GetPPTX() );
}
OUString ScColBar::GetEntryText( SCCOLROW nEntryNo ) const
@@ -238,8 +239,9 @@ sal_uInt16 ScRowBar::GetEntrySize( SCCOLROW nEntryNo ) const
if (pDoc->RowHidden(nEntryNo, nTab, NULL, &nLastRow))
return 0;
else
- return (sal_uInt16) ScViewData::ToPixel( pDoc->GetOriginalHeight( nEntryNo,
- nTab ), pViewData->GetPPTY() );
+ return mTabInfo.mpRowInfo[0].nHeight / 16;
+// return (sal_uInt16) ScViewData::ToPixel( pDoc->GetOriginalHeight( nEntryNo,
+// nTab ), pViewData->GetPPTY() );
}
OUString ScRowBar::GetEntryText( SCCOLROW nEntryNo ) const