mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-05 15:57:18 +01:00
Cocoa: fix range check error in TCocoaWSCustomTabControl.GetTabRect()
This commit is contained in:
parent
a4ab5f4aa2
commit
5a5e92008b
@ -820,7 +820,7 @@ var
|
||||
lTabPage: NSTabViewItem;
|
||||
tb : TCocoaTabPageView;
|
||||
i : integer;
|
||||
idx : integer;
|
||||
idx : NSUInteger;
|
||||
tr : TRect;
|
||||
w : array of Double;
|
||||
mw : Double;
|
||||
@ -838,7 +838,7 @@ begin
|
||||
if not Assigned(tb) then Exit;
|
||||
|
||||
idx := lTabControl.tabViewItems.indexOfObject( tb.tabPage );
|
||||
if (idx = Integer(NSNotFound)) then Exit;
|
||||
if idx = NSNotFound then Exit;
|
||||
|
||||
if not GetTabsRect(lTabControl, tr) then Exit;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user