diff --git a/src/osgWidget/WindowManager.cpp b/src/osgWidget/WindowManager.cpp index 06bf15bc0..3ff7aa1da 100644 --- a/src/osgWidget/WindowManager.cpp +++ b/src/osgWidget/WindowManager.cpp @@ -299,10 +299,11 @@ bool WindowManager::pickAtXY(float x, float y, WidgetList& wl) { // Make sure that our window is valid, and that our pick is within the // "visible area" of the Window. - if( - (!win || win->getVisibilityMode() == Window::VM_PARTIAL) && - !win->isPointerXYWithinVisible(x, y) - ) continue; + if(!win || + (win->getVisibilityMode()==Window::VM_PARTIAL && !win->isPointerXYWithinVisible(x, y))) + { + continue; + } // Set our activeWin, so that we know when we've got all the Widgets // that belong to it.