From eae56604873d987d6da062c4882be04c68fffd92 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 29 Mar 2014 15:07:11 +0000 Subject: coverity#704279 Logically dead code Change-Id: If6dd6c00e4c5aa544d687200e86a30fcf843700d --- sc/source/ui/view/tabview.cxx | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) (limited to 'sc') 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; -- cgit