]> git.saurik.com Git - wxWidgets.git/commit
Store the result of wxWindow::NewControlId() in wxWindowIDRef.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 23 Jul 2010 23:32:56 +0000 (23:32 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 23 Jul 2010 23:32:56 +0000 (23:32 +0000)
commit2c83a950a414205f2ece4ab953ed993c10d2f537
treea91c7bb0ffea926a9f46de42b01e6cab0ccfb9b7
parenta5bb451448bc5abdadd4ded3f3bc18dbbf07fedd
Store the result of wxWindow::NewControlId() in wxWindowIDRef.

The result of calling NewControlId() must be assigned to wxWindowIDRef to be
accounted for correctly, otherwise the id was marked as free while a reference
to it still existed resulting in asserts in id management code when we
attempted to reuse it.

Closes #11604.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65059 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
samples/scroll/scroll.cpp