ExtendedNotebook: fixed selecting last tab. Issue #0019845

git-svn-id: trunk@31893 -
This commit is contained in:
martin 2011-08-06 15:37:23 +00:00
parent d07fc13245
commit 2a8cfe716e

View File

@ -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;