Don't set focus to hidden window in wxSetFocusToChild().
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 18 Apr 2012 09:23:05 +0000 (09:23 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 18 Apr 2012 09:23:05 +0000 (09:23 +0000)
commit6ca243fc75755bf1bb42d9ec8a0fdd7a4aab88ca
tree3284438ce93d064d2aaf460c2c726c4a6a7983cd
parent34a9a3528fe866f050d2570080c43a501d45fffc
Don't set focus to hidden window in wxSetFocusToChild().

The window that had focus previously could be hidden now, but its parent could
be hidden as well so it's not enough to set focus to it but we need to loop
until we find a visible ancestor.

Closes #14230.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/containr.cpp