diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-03-01 11:38:19 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-03-01 12:20:16 +0100 |
commit | 20ad023a918204da922c4c262b50a411f2e2dace (patch) | |
tree | ce7391383d2979c8adf5e3ce0ddaad6eaa9f3eac /sc | |
parent | a531af237d21a9a6597b2766893c909e1ac5cc25 (diff) |
ccu#1573 sc lok: fix reporting of hidden row height
For columns we use ScDocument::GetColWidth(), which returns 0 for hidden
columsn. Do the same for rows: so instead of using GetOriginalHeight(),
use GetRowHeight(), and then 0 size will be reported for hidden rows as
well.
Change-Id: Ic23b6af744bbc8e194e1906614adebe5ba0c7ced
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/tabview.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx index 791851622e22..9f5d69928057 100644 --- a/sc/source/ui/view/tabview.cxx +++ b/sc/source/ui/view/tabview.cxx @@ -2326,7 +2326,8 @@ OUString ScTabView::getRowColumnHeaders(const Rectangle& rRectangle) long nTotalPixels = 0; for (SCROW nRow = 0; nRow <= nEndRow; ++nRow) { - sal_uInt16 nSize = pDoc->GetOriginalHeight(nRow, aViewData.GetTabNo()); + // nSize will be 0 for hidden rows. + sal_uInt16 nSize = pDoc->GetRowHeight(nRow, aViewData.GetTabNo()); long nSizePixels = ScViewData::ToPixel(nSize, aViewData.GetPPTY()); OUString aText = pRowBar[SC_SPLIT_BOTTOM]->GetEntryText(nRow); |