diff options
Diffstat (limited to 'sc/source/ui/navipi/navipi.cxx')
-rw-r--r-- | sc/source/ui/navipi/navipi.cxx | 36 |
1 files changed, 11 insertions, 25 deletions
diff --git a/sc/source/ui/navipi/navipi.cxx b/sc/source/ui/navipi/navipi.cxx index 9e7f8d216968..e48e57cabb73 100644 --- a/sc/source/ui/navipi/navipi.cxx +++ b/sc/source/ui/navipi/navipi.cxx @@ -1088,7 +1088,7 @@ void ScNavigatorDlg::SetListMode( NavListMode eMode, bool bSetSize ) break; case NAV_LMODE_SCENARIOS: - ShowScenarios( true, bSetSize ); + ShowScenarios( bSetSize ); break; } @@ -1151,36 +1151,22 @@ void ScNavigatorDlg::ShowList( bool bShow, bool bSetSize ) } } -void ScNavigatorDlg::ShowScenarios( bool bShow, bool bSetSize ) +void ScNavigatorDlg::ShowScenarios( bool bSetSize ) { FloatingWindow* pFloat = pContextWin!=nullptr ? pContextWin->GetFloatingWindow() : nullptr; Size aSize = GetParent()->GetOutputSizePixel(); - if ( bShow ) - { - Size aMinSize = aInitSize; - aMinSize.Height() += nInitListHeight; - if ( pFloat ) - pFloat->SetMinOutputSizePixel( aMinSize ); - aSize.Height() = nListModeHeight; + Size aMinSize = aInitSize; + aMinSize.Height() += nInitListHeight; + if ( pFloat ) + pFloat->SetMinOutputSizePixel( aMinSize ); + aSize.Height() = nListModeHeight; - rBindings.Invalidate( SID_SELECT_SCENARIO ); - rBindings.Update( SID_SELECT_SCENARIO ); + rBindings.Invalidate( SID_SELECT_SCENARIO ); + rBindings.Update( SID_SELECT_SCENARIO ); - aWndScenarios->Show(); - aLbDocuments->Show(); - } - else - { - if ( pFloat ) - { - pFloat->SetMinOutputSizePixel( aInitSize ); - nListModeHeight = aSize.Height(); - } - aSize.Height() = aInitSize.Height(); - aWndScenarios->Hide(); - aLbDocuments->Hide(); - } + aWndScenarios->Show(); + aLbDocuments->Show(); aLbEntries->Hide(); if ( pFloat ) |