layerNode = nextLayerNode;
}
m_noTabs = 0;
+ m_tabSelection = -1;
}
if (!event.LeftDown())
return FALSE;
- long x, y;
- event.Position(&x, &y);
+ wxCoord x, y;
+ event.GetPosition(&x, &y);
wxTabControl *hitControl = (wxTabControl *) NULL;
void wxTabView::SetTabSelection(int sel, bool activateTool)
{
+ if ( sel==m_tabSelection )
+ return;
+
int oldSel = m_tabSelection;
wxTabControl *control = FindTabControlForId(sel);
wxTabControl *oldControl = FindTabControlForId(m_tabSelection);