Skip to content

Commit

Permalink
nvdaHelper displayModel interface implementation of getWindowTextInRe…
Browse files Browse the repository at this point in the history
…ct: when collecting text from descendant windows, ignore windows that are invisible according to IsWindowVisible. This among other things stops text from other tabs bleeding through when reviewing a particular propertysheet in a multitabbed dialog (e.g. file / folder properties in Windows explorer).
  • Loading branch information
michaelDCurran committed Nov 11, 2010
1 parent 9ddf195 commit 6734aaf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/NVDAHelper/remote/displayModelRemote.cpp
Expand Up @@ -35,6 +35,7 @@ error_status_t displayModelRemote_getWindowTextInRect(handle_t bindingHandle, co
if(hasDescendantWindows) {
tempModel=new displayModel_t;
for(deque<HWND>::reverse_iterator i=windowDeque.rbegin();i!=windowDeque.rend();++i) {
if(!IsWindowVisible(*i)) continue;
displayModelsByWindow.acquire();
displayModelsMap_t<HWND>::iterator j=displayModelsByWindow.find(*i);
if(j!=displayModelsByWindow.end()) {
Expand Down

0 comments on commit 6734aaf

Please sign in to comment.