]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/toolbar.cpp
Use a compatible bitmap if a depth of -1 is given
[wxWidgets.git] / src / mac / toolbar.cpp
index 51ba976d420f25e714509e9fd2680f0f0b18c353..d8bdac1326f60f9cf121423a9a3a12299b82ebf1 100644 (file)
@@ -173,7 +173,9 @@ wxToolBarTool::wxToolBarTool(wxToolBar *tbar,
         : wxToolBarToolBase(tbar, id, label, bmpNormal, bmpDisabled, kind,
                             clientData, shortHelp, longHelp)
 {
         : wxToolBarToolBase(tbar, id, label, bmpNormal, bmpDisabled, kind,
                             clientData, shortHelp, longHelp)
 {
-    Init() ;
+    Init();
+    
+    if (id == wxID_SEPARATOR) return;
     
     WindowRef window = (WindowRef) tbar->MacGetRootWindow() ;    
     wxSize toolSize = tbar->GetToolSize() ;    
     
     WindowRef window = (WindowRef) tbar->MacGetRootWindow() ;    
     wxSize toolSize = tbar->GetToolSize() ;