]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/windowid.cpp
Add component-level filtering to wxLog.
[wxWidgets.git] / src / common / windowid.cpp
index 10e57fa66c404bd4289d52d338b97141f059cc24..a254d023d778cf73d5f00f6322c5903c068905cc 100644 (file)
@@ -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