mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 19:49:18 +02:00
Gtk2: fixed crash on gtk2 64bit when an invalid index is passed to setPageIndex
git-svn-id: trunk@33963 -
This commit is contained in:
parent
09e60d3eb7
commit
719c2296c9
@ -475,7 +475,8 @@ var
|
||||
begin
|
||||
if not WSCheckHandleAllocated(ATabControl, 'SetPageIndex') then
|
||||
Exit;
|
||||
|
||||
if (AIndex < 0) or (AIndex > ATabControl.PageCount - 1) then
|
||||
exit;
|
||||
GtkNotebook := PGtkNoteBook(ATabControl.Handle);
|
||||
if gtk_notebook_get_current_page(GtkNotebook) <> AIndex then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user