]> git.saurik.com Git - wxWidgets.git/commitdiff
Avoid id clashes
authorJulian Smart <julian@anthemion.co.uk>
Mon, 4 Oct 2010 08:10:27 +0000 (08:10 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 4 Oct 2010 08:10:27 +0000 (08:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextctrl.cpp

index a4141381f0f35e5f10bbeed8f79a417ca4ba5010..6d834135d1603d5ad7d7f6a337140a8ab230d440 100644 (file)
@@ -300,7 +300,7 @@ bool wxRichTextCtrl::Create( wxWindow* parent, wxWindowID id, const wxString& va
     m_contextMenu->AppendSeparator();
     m_contextMenu->Append(wxID_SELECTALL, _("Select &All"));
 
-    long ids = wxNewId();
+    long ids = wxWindow::NewControlId();
     m_contextMenu->AppendSeparator();
     m_contextMenu->Append(ids, _("&Properties"));