mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 13:00:16 +02:00
Qt: fixed range check errors under 64bit
git-svn-id: trunk@38935 -
This commit is contained in:
parent
d21e04d8f9
commit
457cf17356
@ -6029,7 +6029,7 @@ var
|
||||
ScrollBar.setMinimum(ScrollInfo.nMin);
|
||||
|
||||
// we must recount ScrollBar.Max since invalid value raises AV
|
||||
iRecountMax := ScrollInfo.nMax - ScrollInfo.nPage;
|
||||
iRecountMax := ScrollInfo.nMax - Integer(ScrollInfo.nPage);
|
||||
if iRecountMax < ScrollInfo.nMin then
|
||||
iRecountMax := ScrollInfo.nMin;
|
||||
|
||||
@ -6041,7 +6041,7 @@ var
|
||||
// segfaults if we don't check Enabled property
|
||||
if ScrollBar.getEnabled then
|
||||
begin
|
||||
ScrollBar.setPageStep(ScrollInfo.nPage);
|
||||
ScrollBar.setPageStep(Integer(ScrollInfo.nPage));
|
||||
WheelLines := QApplication_wheelScrollLines();
|
||||
with Scrollbar do
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user