Changeset 91


Ignore:
Timestamp:
Jan 19, 2017, 9:43:04 PM (8 years ago)
Author:
chronos
Message:
  • Fixed: Avoid negative scrollbar max under linux.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/PVSB.pas

    r90 r91  
    153153begin
    154154  FMax := AValue;
    155   ScrollBar.Max := Max{$IFDEF LINUX} - PageSize + 1{$ENDIF};
     155  ScrollBar.Max := Math.Max(0, Max{$IFDEF LINUX} - PageSize + 1{$ENDIF});
    156156end;
    157157
Note: See TracChangeset for help on using the changeset viewer.