summaryrefslogtreecommitdiff
path: root/vcl/source/window/dlgctrl.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-05-18 15:54:19 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-09-28 08:48:19 +0100
commita3b7b56eaaf6adce8efbbd1d40a06cc703311ee3 (patch)
tree526cb58e0c6d4732b6b90476a247ba05646d74ef /vcl/source/window/dlgctrl.cxx
parent75e99c7a646c15ed9317577abbe95284060d50a8 (diff)
add prevLogicalChildOfParent
Diffstat (limited to 'vcl/source/window/dlgctrl.cxx')
-rw-r--r--vcl/source/window/dlgctrl.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/vcl/source/window/dlgctrl.cxx b/vcl/source/window/dlgctrl.cxx
index ffe3a4ab5988..20027768eca1 100644
--- a/vcl/source/window/dlgctrl.cxx
+++ b/vcl/source/window/dlgctrl.cxx
@@ -804,7 +804,7 @@ sal_Bool Window::ImplDlgCtrl( const KeyEvent& rKEvt, sal_Bool bKeyInput )
WinBits nStyle = pSWindow->GetStyle();
if ( !(nStyle & WB_GROUP) )
{
- pWindow = pWindow->GetWindow( WINDOW_PREV );
+ pWindow = prevLogicalChildOfParent(this, pWindow);
while ( pWindow )
{
pWindow = pWindow->ImplGetWindow();
@@ -821,20 +821,18 @@ sal_Bool Window::ImplDlgCtrl( const KeyEvent& rKEvt, sal_Bool bKeyInput )
if ( nStyle & WB_GROUP )
break;
- pWindow = pWindow->GetWindow( WINDOW_PREV );
+ pWindow = prevLogicalChildOfParent(this, pWindow);
}
}
}
else if ( (nKeyCode == KEY_RIGHT) || (nKeyCode == KEY_DOWN) )
{
- Window* pWindow;
- WinBits nStyle;
- pWindow = nextLogicalChildOfParent(this, pSWindow);
+ Window* pWindow = nextLogicalChildOfParent(this, pSWindow);
while ( pWindow )
{
pWindow = pWindow->ImplGetWindow();
- nStyle = pWindow->GetStyle();
+ WinBits nStyle = pWindow->GetStyle();
if ( nStyle & WB_GROUP )
break;