diff options
Diffstat (limited to 'vcl/source/window/window.cxx')
-rw-r--r-- | vcl/source/window/window.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index d7e362d0c8aa..88df1b407c2a 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -35,6 +35,7 @@ #include "unotools/fontcfg.hxx" #include "unotools/confignode.hxx" +#include "vcl/layout.hxx" #include "vcl/unohelp.hxx" #include "vcl/salgtype.hxx" #include "vcl/event.hxx" @@ -5218,7 +5219,7 @@ long Window::Notify( NotifyEvent& rNEvt ) if ( (rNEvt.GetType() == EVENT_KEYINPUT) || (rNEvt.GetType() == EVENT_KEYUP) ) { if ( ImplIsOverlapWindow() || - ((ImplGetParent()->GetStyle() & (WB_DIALOGCONTROL | WB_NODIALOGCONTROL)) != WB_DIALOGCONTROL) ) + ((getNonLayoutRealParent(this)->GetStyle() & (WB_DIALOGCONTROL | WB_NODIALOGCONTROL)) != WB_DIALOGCONTROL) ) { nRet = ImplDlgCtrl( *rNEvt.GetKeyEvent(), rNEvt.GetType() == EVENT_KEYINPUT ); } |