LCL: fixed TControlScrollBar.InternalSetRange avoiding negative values, bug #25693

git-svn-id: trunk@43951 -
This commit is contained in:
mattias 2014-02-08 10:49:10 +00:00
parent ded56dfb04
commit 92eb98b5b6

View File

@ -392,7 +392,7 @@ begin
NewRange := 0; NewRange := 0;
if FRange = NewRange then if FRange = NewRange then
Exit; Exit;
FRange := AValue; FRange := NewRange;
{$IFDEF VerboseScrollingWinControl} {$IFDEF VerboseScrollingWinControl}
//if DebugCondition then //if DebugCondition then
DebugLn(['TControlScrollBar.SetRange ',dbgs(Kind),' ',Self,' FRange=',FRange]); DebugLn(['TControlScrollBar.SetRange ',dbgs(Kind),' ',Self,' FRange=',FRange]);