From 2a8cfe716e1df8ad1c3df48fa645129b2a746e4c Mon Sep 17 00:00:00 2001 From: martin Date: Sat, 6 Aug 2011 15:37:23 +0000 Subject: [PATCH] ExtendedNotebook: fixed selecting last tab. Issue #0019845 git-svn-id: trunk@31893 - --- components/lazcontrols/extendednotebook.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lazcontrols/extendednotebook.pas b/components/lazcontrols/extendednotebook.pas index 52ab5820dc..b924c518db 100644 --- a/components/lazcontrols/extendednotebook.pas +++ b/components/lazcontrols/extendednotebook.pas @@ -186,7 +186,7 @@ begin if not FTabDragged then begin // no drag => check for normal click and activate page MouseUpTabIndex := TabIndexAtClientPos(Point(X,Y)); - if (Button = mbLeft) and (FDraggingTabIndex = MouseUpTabIndex) and + if (Button = mbLeft) and (FMouseDownIndex = MouseUpTabIndex) and (FDraggingTabIndex >= 0) then PageIndex:=MouseUpTabIndex;