]> git.saurik.com Git - wxWidgets.git/commitdiff
fix off by one byg in ReserveId() (closes #10020)
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 3 Oct 2008 15:30:41 +0000 (15:30 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 3 Oct 2008 15:30:41 +0000 (15:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/windowid.cpp

index 10e57fa66c404bd4289d52d338b97141f059cc24..8db065e0151340dc62e51d886e760b13eea50b7e 100644 (file)
@@ -202,7 +202,7 @@ wxWindowID wxIdManager::ReserveId(int count)
                     while(count--)
                         ReserveIdRefCount(id--);
 
-                    return id;
+                    return id + 1;
                 }
             }
             else