LCL carbon: (can be merged) applied patch #0012235: Carbon: Fix for tab switching bug from skalogryyz

git-svn-id: trunk@16752 -
This commit is contained in:
tombo 2008-09-26 10:47:55 +00:00
parent 570b4ab140
commit 12dd2f0c1a

View File

@ -673,9 +673,11 @@ begin
Index := GetValue - 1;
if Index >= 0 then Inc(Index, FFirstIndex);
//DebugLn('TCarbonTabsControl.ValueChanged Index: ', DbgS(Index), ' Old ', DbgS(FOldTabIndex));
if Index = FOldTabIndex then Exit;
FOldTabIndex := Index;
//comment
//DebugLn('TCarbonTabsControl.ValueChanged Index: ', DbgS(Index), ' Old ', DbgS(FOldTabIndex), ' Current ', DbgS(FTabIndex));
if Index = FTabIndex then Exit;
FOldTabIndex := FTabIndex;
FTabIndex := Index;
if (Index >= 0) and (Index < FTabs.Count) then
PIndex := TabIndexToPageIndex(Index)