]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/tbarbase.h
improvements to zlib streams (patch 929416):
[wxWidgets.git] / include / wx / tbarbase.h
index 16344e72f4416b9816fbd41a39e047c943fabe45..299a018e2392021ffc6e1956fb531d228dc37be1 100644 (file)
@@ -79,6 +79,8 @@ public:
     {
         m_tbar = tbar;
         m_id = toolid;
     {
         m_tbar = tbar;
         m_id = toolid;
+        if (m_id == wxID_ANY)
+            m_id = wxNewId();
         m_clientData = clientData;
 
         m_bmpNormal = bmpNormal;
         m_clientData = clientData;
 
         m_bmpNormal = bmpNormal;