make sure that wxNewId() doesn't return standard ID's value
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -547,10 +547,13 @@ bool wxYieldIfNeeded()
|
||||
// Id generation
|
||||
static long wxCurrentId = 100;
|
||||
|
||||
long
|
||||
wxNewId (void)
|
||||
long wxNewId()
|
||||
{
|
||||
return wxCurrentId++;
|
||||
// skip the part of IDs space that contains hard-coded values:
|
||||
if (wxCurrentId == wxID_LOWEST)
|
||||
wxCurrentId = wxID_HIGHEST + 1;
|
||||
|
||||
return wxCurrentId++;
|
||||
}
|
||||
|
||||
long
|
||||
|
Reference in New Issue
Block a user