X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf2810aa394d47a43489d6138edf0497c389a22c..a43a9e5521440dbb28037646ed4a07125c8823a9:/src/common/windowid.cpp 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