mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 17:50:19 +02:00
lcl: fix range check error
git-svn-id: trunk@25051 -
This commit is contained in:
parent
7787ab48a2
commit
ae15eed5d3
@ -851,7 +851,7 @@ begin
|
||||
(csDestroyingHandle in ControlState) then
|
||||
begin
|
||||
OldPageIndex := FPageIndex;
|
||||
FPageIndex := NMHDR^.idfrom;
|
||||
FPageIndex := PtrInt(NMHDR^.idfrom);
|
||||
if FPageIndex >= PageCount then
|
||||
FPageIndex := -1;
|
||||
//debugln(['TCustomNotebook.CNNotify ',DbgSName(Self),' A Old=',OldPageIndex,' fPageIndex=',fPageIndex,' FLoadedPageIndex=',FLoadedPageIndex]);
|
||||
|
||||
@ -6304,7 +6304,7 @@ begin
|
||||
|
||||
Hdr.hwndFrom := LCLObject.Handle;
|
||||
Hdr.Code := TCN_SELCHANGE;
|
||||
Hdr.idFrom := TQtTabWidget(LCLObject.Handle).GetLCLPageIndex(Index);
|
||||
Hdr.idFrom := PtrUInt(TQtTabWidget(LCLObject.Handle).GetLCLPageIndex(Index));
|
||||
Msg.NMHdr := @Hdr;
|
||||
Msg.Result := 0;
|
||||
DeliverMessage(Msg);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user