LCL: Allow setting TNotebook.PageIndex := -1. Issue #26829, patch from Simon Ameis.

git-svn-id: trunk@46467 -
This commit is contained in:
juha 2014-10-07 21:56:57 +00:00
parent fe55929cd6
commit 4e21ba148f

View File

@ -183,6 +183,8 @@ begin
// Update the property
FPageIndex := AValue;
if (FPageIndex = -1) then
exit;
// And show the new one
if Assigned(Page[FPageIndex].FOnBeforeShow) then Page[FPageIndex].FOnBeforeShow(Self, Page[FPageIndex], FPageIndex); // OnBeforeShow event