]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/tbarbase.cpp
fix Purpose comment
[wxWidgets.git] / src / common / tbarbase.cpp
index 0e6d905ab36c63f45107752357bd717078210f03..8d07da7930e92ed57407ad2042533207ff169144 100644 (file)
@@ -697,7 +697,11 @@ void wxToolBarBase::UpdateWindowUI(long flags)
           node;
           node = node->GetNext() )
     {
-        int id = node->GetData()->GetId();
+        wxToolBarToolBase * const tool = node->GetData();
+        if ( tool->IsSeparator() )
+            continue;
+
+        int id = tool->GetId();
 
         wxUpdateUIEvent event(id);
         event.SetEventObject(this);