summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/syswin.cxx44
1 files changed, 22 insertions, 22 deletions
diff --git a/vcl/source/window/syswin.cxx b/vcl/source/window/syswin.cxx
index c4d5017ef950..cb45ea4bd56e 100644
--- a/vcl/source/window/syswin.cxx
+++ b/vcl/source/window/syswin.cxx
@@ -138,31 +138,31 @@ bool Accelerator::ToggleMnemonicsOnHierarchy(const CommandEvent& rCEvent, vcl::W
vcl::Window *pGetChild = firstLogicalChildOfParent(pWindow);
while (pGetChild)
{
- if ( pGetChild->GetType() == WINDOW_TABCONTROL )
+ if (pGetChild->GetType() == WINDOW_TABCONTROL)
{
- // find currently shown tab page
- TabControl* pTabControl = static_cast<TabControl*>( pGetChild );
- TabPage* pTabPage = pTabControl->GetTabPage( pTabControl->GetCurPageId() );
- vcl::Window* pTabPageChild = firstLogicalChildOfParent( pTabPage );
-
- // and go through its children
- while ( pTabPageChild )
- {
- ImplHandleControlAccelerator(pTabPageChild, bShowAccel);
- pTabPageChild = nextLogicalChildOfParent(pTabPage, pTabPageChild);
- }
+ // find currently shown tab page
+ TabControl* pTabControl = static_cast<TabControl*>( pGetChild );
+ TabPage* pTabPage = pTabControl->GetTabPage( pTabControl->GetCurPageId() );
+ vcl::Window* pTabPageChild = firstLogicalChildOfParent( pTabPage );
+
+ // and go through its children
+ while ( pTabPageChild )
+ {
+ ImplHandleControlAccelerator(pTabPageChild, bShowAccel);
+ pTabPageChild = nextLogicalChildOfParent(pTabPage, pTabPageChild);
+ }
}
- else if ( pGetChild->GetType() == WINDOW_TABPAGE )
+ else if (pGetChild->GetType() == WINDOW_TABPAGE)
{
- // bare tabpage without tabcontrol parent (options dialog)
- vcl::Window* pTabPageChild = firstLogicalChildOfParent( pGetChild );
-
- // and go through its children
- while ( pTabPageChild )
- {
- ImplHandleControlAccelerator(pTabPageChild, bShowAccel);
- pTabPageChild = nextLogicalChildOfParent(pGetChild, pTabPageChild);
- }
+ // bare tabpage without tabcontrol parent (options dialog)
+ vcl::Window* pTabPageChild = firstLogicalChildOfParent( pGetChild );
+
+ // and go through its children
+ while ( pTabPageChild )
+ {
+ ImplHandleControlAccelerator(pTabPageChild, bShowAccel);
+ pTabPageChild = nextLogicalChildOfParent(pGetChild, pTabPageChild);
+ }
}
ImplHandleControlAccelerator( pGetChild, bShowAccel );