Cleanup/downscope variable
This commit is contained in:
parent
9ed1ad06f7
commit
05b5d2de00
|
@ -434,14 +434,13 @@ void TOOL_DISPATCHER::DispatchWxEvent( wxEvent& aEvent )
|
||||||
|
|
||||||
wxEventType type = aEvent.GetEventType();
|
wxEventType type = aEvent.GetEventType();
|
||||||
|
|
||||||
wxWindow* holderWindow = dynamic_cast<wxWindow*>( m_toolMgr->GetToolHolder() );
|
|
||||||
|
|
||||||
// Sometimes there is no window that has the focus (it happens when another PCB_BASE_FRAME
|
// Sometimes there is no window that has the focus (it happens when another PCB_BASE_FRAME
|
||||||
// is opened and is iconized on Windows).
|
// is opened and is iconized on Windows).
|
||||||
// In this case, give the focus to the parent frame (GAL canvas itself does not accept the
|
// In this case, give the focus to the parent frame (GAL canvas itself does not accept the
|
||||||
// focus when iconized for some obscure reason)
|
// focus when iconized for some obscure reason)
|
||||||
if( focus == nullptr )
|
if( focus == nullptr )
|
||||||
{
|
{
|
||||||
|
wxWindow* holderWindow = dynamic_cast<wxWindow*>( m_toolMgr->GetToolHolder() );
|
||||||
|
|
||||||
#if defined( _WIN32 )
|
#if defined( _WIN32 )
|
||||||
// Mouse events may trigger regardless of window status (windows feature)
|
// Mouse events may trigger regardless of window status (windows feature)
|
||||||
|
|
Loading…
Reference in New Issue