diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-02-11 22:37:44 -0500 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-02-11 22:37:44 -0500 |
commit | acfcebd01eb0cf3503491a5e52b60a2f454b63a8 (patch) | |
tree | ab4585a711420bcab92f8fb16e67fad741e69860 /sc/source/ui/view/colrowba.cxx | |
parent | 5f61d6da668ba7d14f8cdf390aad4f12fc6900bd (diff) |
Cleaned up RowHidden() and ColHidden() calls.
There were two versions of each; let's just keep one and remove the
other.
Diffstat (limited to 'sc/source/ui/view/colrowba.cxx')
-rw-r--r-- | sc/source/ui/view/colrowba.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/ui/view/colrowba.cxx b/sc/source/ui/view/colrowba.cxx index 0aa828d78941..79ea4b61b2ef 100644 --- a/sc/source/ui/view/colrowba.cxx +++ b/sc/source/ui/view/colrowba.cxx @@ -99,8 +99,7 @@ USHORT ScColBar::GetEntrySize( SCCOLROW nEntryNo ) { ScDocument* pDoc = pViewData->GetDocument(); SCTAB nTab = pViewData->GetTabNo(); - SCCOL nLastCol = -1; - if (pDoc->ColHidden(static_cast<SCCOL>(nEntryNo), nTab, nLastCol)) + if (pDoc->ColHidden(static_cast<SCCOL>(nEntryNo), nTab)) return 0; else return (USHORT) ScViewData::ToPixel( pDoc->GetColWidth( static_cast<SCCOL>(nEntryNo), nTab ), pViewData->GetPPTX() ); @@ -266,7 +265,7 @@ USHORT ScRowBar::GetEntrySize( SCCOLROW nEntryNo ) ScDocument* pDoc = pViewData->GetDocument(); SCTAB nTab = pViewData->GetTabNo(); SCROW nLastRow = -1; - if (pDoc->RowHidden(nEntryNo, nTab, nLastRow)) + if (pDoc->RowHidden(nEntryNo, nTab, NULL, &nLastRow)) return 0; else return (USHORT) ScViewData::ToPixel( pDoc->GetOriginalHeight( nEntryNo, |