Browse Source

PCBnew clarify selection menu doesn't highlight individual selection on Windows

(Use Mac solution to disambiguation highlighting on MSW).

Fixes: lp:1594029
https://bugs.launchpad.net/kicad/+bug/1594029
pull/5/merge
Jeff Young 8 years ago
committed by jean-pierre charras
parent
commit
a7cdd94212
  1. 8
      common/tool/tool_manager.cpp

8
common/tool/tool_manager.cpp

@ -1,7 +1,7 @@
/* /*
* This program source code file is part of KiCad, a free EDA CAD application. * This program source code file is part of KiCad, a free EDA CAD application.
* *
* Copyright (C) 2013-2017 CERN
* Copyright (C) 2013-2018 CERN
* @author Tomasz Wlostowski <tomasz.wlostowski@cern.ch> * @author Tomasz Wlostowski <tomasz.wlostowski@cern.ch>
* @author Maciej Suminski <maciej.suminski@cern.ch> * @author Maciej Suminski <maciej.suminski@cern.ch>
* *
@ -774,9 +774,9 @@ bool TOOL_MANAGER::ProcessEvent( const TOOL_EVENT& aEvent )
{ {
auto f = dynamic_cast<EDA_DRAW_FRAME*>( GetEditFrame() ); auto f = dynamic_cast<EDA_DRAW_FRAME*>( GetEditFrame() );
if( f )
f->GetGalCanvas()->Refresh(); // fixme: ugly hack, provide a method in TOOL_DISPATCHER.
#ifdef __WXMAC__
if( f )
f->GetGalCanvas()->Refresh(); // fixme: ugly hack, provide a method in TOOL_DISPATCHER.
#ifndef __UNIX__
wxTheApp->ProcessPendingEvents(); // required for updating brightening behind a popup menu wxTheApp->ProcessPendingEvents(); // required for updating brightening behind a popup menu
#endif #endif
} }

Loading…
Cancel
Save