diff options
author | Stephan Schäfer <ssa@openoffice.org> | 2002-07-19 10:12:18 +0000 |
---|---|---|
committer | Stephan Schäfer <ssa@openoffice.org> | 2002-07-19 10:12:18 +0000 |
commit | 7905bb1b1ae63c8131a8d36ac722e67aa1d808dd (patch) | |
tree | 05b4e9e4cf2845a7a405c05e80312a7ac57ad42e /vcl/source/control/scrbar.cxx | |
parent | 5eaa801083520add0cf4fe2bf5b812ca310fe7f5 (diff) |
#101374# revert last SetThumbPos() changes because it breaks the API, fixing toolkit instead
Diffstat (limited to 'vcl/source/control/scrbar.cxx')
-rw-r--r-- | vcl/source/control/scrbar.cxx | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/vcl/source/control/scrbar.cxx b/vcl/source/control/scrbar.cxx index 56451294f434..b71214a9d4b9 100644 --- a/vcl/source/control/scrbar.cxx +++ b/vcl/source/control/scrbar.cxx @@ -2,9 +2,9 @@ * * $RCSfile: scrbar.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: ssa $ $Date: 2002-07-18 12:46:52 $ + * last change: $Author: ssa $ $Date: 2002-07-19 11:12:18 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -597,14 +597,13 @@ void ScrollBar::ImplDraw( USHORT nDrawFlags ) long ScrollBar::ImplScroll( long nNewPos, BOOL bCallEndScroll ) { - //long nOldPos = mnThumbPos; + long nOldPos = mnThumbPos; SetThumbPos( nNewPos ); - //long nDelta = mnThumbPos-nOldPos; - long nDelta = mnDelta; + long nDelta = mnThumbPos-nOldPos; if ( nDelta ) { - //mnDelta = nDelta; - //Scroll(); + mnDelta = nDelta; + Scroll(); if ( bCallEndScroll ) EndScroll(); mnDelta = 0; @@ -799,10 +798,10 @@ void ScrollBar::Tracking( const TrackingEvent& rTEvt ) // Bei Abbruch, die alte ThumbPosition wieder herstellen if ( rTEvt.IsTrackingCanceled() ) { - //long nOldPos = mnThumbPos; + long nOldPos = mnThumbPos; SetThumbPos( mnStartPos ); - //mnDelta = mnThumbPos-nOldPos; - //Scroll(); + mnDelta = mnThumbPos-nOldPos; + Scroll(); } if ( meScrollType == SCROLL_DRAG ) @@ -1076,10 +1075,8 @@ void ScrollBar::SetThumbPos( long nNewThumbPos ) if ( mnThumbPos != nNewThumbPos ) { - mnDelta = nNewThumbPos - mnThumbPos; mnThumbPos = nNewThumbPos; StateChanged( STATE_CHANGE_DATA ); - Scroll(); } } |