mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 12:18:03 +02:00
customdrawn: Fixes an exception by an extra index check when clicking in a tab
git-svn-id: trunk@33582 -
This commit is contained in:
parent
d8824e0700
commit
7874c0aac5
@ -2105,7 +2105,7 @@ begin
|
||||
end;
|
||||
end
|
||||
// Check if a close button was clicked
|
||||
else if (nboShowCloseButtons in Options) then
|
||||
else if (nboShowCloseButtons in Options) and (lTabIndex >= 0) then
|
||||
begin
|
||||
FTabCState.CurTabIndex := lTabIndex;
|
||||
lCloseButtonPos.X := FDrawer.GetMeasuresEx(Canvas, TCDCTABCONTROL_CLOSE_BUTTON_POS_X, FState, FStateEx);
|
||||
|
Loading…
Reference in New Issue
Block a user