X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d6071228a9c77a0353f3723f6a338aa449cedf9e..1a18887b88e2ba064154ae5998db7b7533f6bb78:/include/wx/tbarbase.h diff --git a/include/wx/tbarbase.h b/include/wx/tbarbase.h index 16344e72f4..299a018e23 100644 --- a/include/wx/tbarbase.h +++ b/include/wx/tbarbase.h @@ -79,6 +79,8 @@ public: { m_tbar = tbar; m_id = toolid; + if (m_id == wxID_ANY) + m_id = wxNewId(); m_clientData = clientData; m_bmpNormal = bmpNormal;