]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/tabg.cpp
* Video with XANIM is working on Multimedia Board (I must improve the window
[wxWidgets.git] / src / generic / tabg.cpp
index 2ac60d8afd0605fe5503c73a0e15b76e9da686d6..24fb5c5f1c1c2b8652307ee3a00bfb86cf402b51 100644 (file)
@@ -699,6 +699,7 @@ void wxTabView::ClearTabs(bool deleteTabs)
     layerNode = nextLayerNode;
   }
   m_noTabs = 0;
+  m_tabSelection = -1;
 }
 
 
@@ -1024,6 +1025,9 @@ void wxTabView::SetBackgroundColour(const wxColour& col)
 
 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);