The change to wxID_ANY is wanted (see here:
http://forums.codeblocks.org/index.php/topic,12345.0.html for details), but only if an item is local (not member).
Due to an uninitialized bool value, the item is always recognized as local, even if the checkbox ("Is member") was initially set, so editing anything leads to a change to wxID_ANY.
(The initialization-issue is fixed in svn r6912.
In my opinion the behaviour is incorrect anyway, at least for wxMenuBar's and wxToolBar's items and maybe others, because they are allowed to be local, because after SetMenuBar or SetToolBar, they are not needed any longer, but the use of wxID_ANY makes them useless.
One solution would be not to change the ID's of local items where it leads to errors (filter them by type).
The other (in my opinion better solution) would be to skip the autocorrection completely and partly revert svn r6241.
In my opinion it makes more sense to change the default ID for items that can not trigger events (like wxStatictext) to wxID_ANY.
If the user accidently changes the scope of any item with default name from member to local (and back) in the current implementation, he/she has to change the ID manually to make the item usable with events again. If the autochange is recognized at all, if not there will be hard to track down errors.
I will add a link to this thread on the older one, to discuss the problem.