X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d6071228a9c77a0353f3723f6a338aa449cedf9e..4c68a10264347cc04b1a6634000595f160792231:/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;