diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-29 15:07:11 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-29 18:12:05 +0000 |
commit | eae56604873d987d6da062c4882be04c68fffd92 (patch) | |
tree | 03e12a93442f290ad6e9c5e9f4eca805cdaf08af /sc | |
parent | 692714b7da20f1545365724ebca5891727d96025 (diff) |
coverity#704279 Logically dead code
Change-Id: If6dd6c00e4c5aa544d687200e86a30fcf843700d
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/tabview.cxx | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx index c445316ac398..7aa8cee0e344 100644 --- a/sc/source/ui/view/tabview.cxx +++ b/sc/source/ui/view/tabview.cxx @@ -981,33 +981,9 @@ bool ScTabView::ScrollCommand( const CommandEvent& rCEvt, ScSplitPos ePos ) IMPL_LINK( ScTabView, EndScrollHdl, ScrollBar*, pScroll ) { - sal_Bool bOnlineScroll = sal_True; //! Optionen - if ( bDragging ) { - if ( bOnlineScroll ) // nur Ranges aktualisieren - UpdateScrollBars(); - else - { - long nScrollMin = 0; // RangeMin simulieren - if ( aViewData.GetHSplitMode()==SC_SPLIT_FIX && pScroll == &aHScrollRight ) - nScrollMin = aViewData.GetFixPosX(); - if ( aViewData.GetVSplitMode()==SC_SPLIT_FIX && pScroll == &aVScrollBottom ) - nScrollMin = aViewData.GetFixPosY(); - - if ( pScroll == &aHScrollLeft || pScroll == &aHScrollRight ) - { - ScHSplitPos eWhich = (pScroll == &aHScrollLeft) ? SC_SPLIT_LEFT : SC_SPLIT_RIGHT; - long nDelta = GetScrollBarPos( *pScroll ) + nScrollMin - aViewData.GetPosX(eWhich); - if (nDelta) ScrollX( nDelta, eWhich ); - } - else // VScroll... - { - ScVSplitPos eWhich = (pScroll == &aVScrollTop) ? SC_SPLIT_TOP : SC_SPLIT_BOTTOM; - long nDelta = GetScrollBarPos( *pScroll ) + nScrollMin - aViewData.GetPosY(eWhich); - if (nDelta) ScrollY( nDelta, eWhich ); - } - } + UpdateScrollBars(); bDragging = false; } return 0; |