diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-03-04 13:03:57 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-03-04 16:07:48 +0000 |
commit | cc71e03d3b249989639d2073e8e9635d5de0b158 (patch) | |
tree | d6d0efa0d70af925201c69c6417dfc4834486da7 /svx/source/dialog | |
parent | 045e4115656063aa8d77e0581eaeea6cbf9e1c9e (diff) |
audit GetParent harder wrt GetParentDialog
weed out assumption that widgets are direct children of Dialogs
Change-Id: Ib2cf0c8862bd5e82b13380634ed82ca7fcc746b8
Diffstat (limited to 'svx/source/dialog')
-rw-r--r-- | svx/source/dialog/graphctl.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/dialog/graphctl.cxx b/svx/source/dialog/graphctl.cxx index 3dc8edebcfa3..bc73f5dca82e 100644 --- a/svx/source/dialog/graphctl.cxx +++ b/svx/source/dialog/graphctl.cxx @@ -290,7 +290,7 @@ void GraphCtrl::KeyInput( const KeyEvent& rKEvt ) pView->DeleteMarked(); bProc = sal_True; if( !pView->AreObjectsMarked() ) - ((Dialog*)GetParent())->GrabFocusToFirstControl(); + GetParentDialog()->GrabFocusToFirstControl(); } } break; @@ -314,12 +314,12 @@ void GraphCtrl::KeyInput( const KeyEvent& rKEvt ) } else { - ((Dialog*)GetParent())->GrabFocusToFirstControl(); + GetParentDialog()->GrabFocusToFirstControl(); } } else { - ((Dialog*)GetParent())->GrabFocusToFirstControl(); + GetParentDialog()->GrabFocusToFirstControl(); } bProc = sal_True; } |