X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e54266add728b5cf83a4d1b2136ecfca55fdc146..c602c59b6e623d7775c16ce6412b64b34dc5dd94:/src/common/windowid.cpp?ds=inline diff --git a/src/common/windowid.cpp b/src/common/windowid.cpp index 10e57fa66c..a254d023d7 100644 --- a/src/common/windowid.cpp +++ b/src/common/windowid.cpp @@ -202,7 +202,7 @@ wxWindowID wxIdManager::ReserveId(int count) while(count--) ReserveIdRefCount(id--); - return id; + return id + 1; } } else @@ -212,7 +212,7 @@ wxWindowID wxIdManager::ReserveId(int count) } } - ::wxLogError(_("Out of window IDs. Recommend shutting down application.")); + wxLogError(_("Out of window IDs. Recommend shutting down application.")); return wxID_NONE; #else // !wxUSE_AUTOID_MANAGEMENT // Make sure enough in the range