From: Vadim Zeitlin Date: Fri, 3 Oct 2008 15:30:41 +0000 (+0000) Subject: fix off by one byg in ReserveId() (closes #10020) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e9d2b75fb5602ba800507a054b3c7a77fe8cdea3 fix off by one byg in ReserveId() (closes #10020) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/windowid.cpp b/src/common/windowid.cpp index 10e57fa66c..8db065e015 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