Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/15/11 12:01:05 (13 years ago)
Author:
mkommend
Message:

Corrected DragOverTabControl (ticket #1058).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/Controls/DragOverTabControl.cs

    r5463 r5464  
    3333      int tabIndex = -1;
    3434      for (int i = 0; i < TabPages.Count; i++) {
    35         if (GetTabRect(i).Contains(position)) tabIndex = i;
     35        if (GetTabRect(i).Contains(position))
     36          tabIndex = i;
    3637      }
    3738
    38       if (tabIndex != SelectedIndex)
     39      if (tabIndex != SelectedIndex && tabIndex != -1)
    3940        SelectedIndex = tabIndex;
     41
    4042    }
    4143  }
Note: See TracChangeset for help on using the changeset viewer.