Fixed tab control index handling.

1 file changed