Do not invoke PNS inline dragging when 'Duplicate' is run.
This commit is contained in:
parent
f7fa0852b5
commit
982eee7905
|
@ -109,8 +109,8 @@ bool ACTION_MANAGER::RunHotKey( int aHotKey ) const
|
|||
int key = aHotKey & ~MD_MODIFIER_MASK;
|
||||
int mod = aHotKey & MD_MODIFIER_MASK;
|
||||
|
||||
if( key >= 'a' && key <= 'z')
|
||||
key = std::toupper(key);
|
||||
if( key >= 'a' && key <= 'z' )
|
||||
key = std::toupper( key );
|
||||
|
||||
HOTKEY_LIST::const_iterator it = m_actionHotKeys.find( key | mod );
|
||||
|
||||
|
|
|
@ -113,6 +113,9 @@ bool EDIT_TOOL::invokeInlineRouter()
|
|||
TRACK* track = uniqueSelected<TRACK>();
|
||||
VIA* via = uniqueSelected<VIA>();
|
||||
|
||||
if( isUndoInhibited() )
|
||||
return false;
|
||||
|
||||
if( track || via )
|
||||
{
|
||||
ROUTER_TOOL* theRouter = static_cast<ROUTER_TOOL*>( m_toolMgr->FindTool( "pcbnew.InteractiveRouter" ) );
|
||||
|
@ -753,7 +756,7 @@ int EDIT_TOOL::Duplicate( const TOOL_EVENT& aEvent )
|
|||
// so zones are not duplicated
|
||||
if( item->Type() != PCB_ZONE_AREA_T )
|
||||
#endif
|
||||
new_item = editFrame->GetBoard()->DuplicateAndAddItem( item, increment );
|
||||
new_item = editFrame->GetBoard()->DuplicateAndAddItem( item, increment );
|
||||
}
|
||||
|
||||
if( new_item )
|
||||
|
|
Loading…
Reference in New Issue