]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/tbarbase.cpp
rename various gsock* files to sock* (except for MSW where this will be done later)
[wxWidgets.git] / src / common / tbarbase.cpp
index 0e6d905ab36c63f45107752357bd717078210f03..8d07da7930e92ed57407ad2042533207ff169144 100644 (file)
@@ -697,7 +697,11 @@ void wxToolBarBase::UpdateWindowUI(long flags)
           node;
           node = node->GetNext() )
     {
           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);
 
         wxUpdateUIEvent event(id);
         event.SetEventObject(this);