X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf2810aa394d47a43489d6138edf0497c389a22c..b53aea81d2e102224b452ef5bf7aee1132f37c6f:/src/common/windowid.cpp?ds=sidebyside diff --git a/src/common/windowid.cpp b/src/common/windowid.cpp index aace85973c..8db065e015 100644 --- a/src/common/windowid.cpp +++ b/src/common/windowid.cpp @@ -118,7 +118,7 @@ void DecIdRefCount(wxWindowID id) // so it should never be reserved, but test anyway if(gs_autoIdsRefCount[id] == ID_RESERVED) { - wxASSERT_MSG(false, wxT("reserve id being decreased")); + wxFAIL_MSG(wxT("reserve id being decreased")); gs_autoIdsRefCount[id] = ID_FREE; } else @@ -202,7 +202,7 @@ wxWindowID wxIdManager::ReserveId(int count) while(count--) ReserveIdRefCount(id--); - return id; + return id + 1; } } else