X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf2810aa394d47a43489d6138edf0497c389a22c..51fe4b60ab4fec78eb1a67473d08b1c4740d03f5:/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