Footprint editor crashes when deleting pads and undoing this command.
Fixes: lp:1701092 https://bugs.launchpad.net/kicad/+bug/1701092
This commit is contained in:
committed by
jean-pierre charras
parent
4130083445
commit
8201e2cbff
@@ -279,7 +279,9 @@ void BOARD_COMMIT::Push( const wxString& aMessage, bool aCreateUndoEntry )
|
||||
if( TOOL_MANAGER* toolMgr = frame->GetToolManager() )
|
||||
toolMgr->PostEvent( { TC_MESSAGE, TA_MODEL_CHANGE, AS_GLOBAL } );
|
||||
|
||||
connectivity->RecalculateRatsnest();
|
||||
if ( !m_editModules )
|
||||
connectivity->RecalculateRatsnest();
|
||||
|
||||
frame->OnModify();
|
||||
frame->UpdateMsgPanel();
|
||||
|
||||
@@ -377,7 +379,8 @@ void BOARD_COMMIT::Revert()
|
||||
}
|
||||
}
|
||||
|
||||
connectivity->RecalculateRatsnest();
|
||||
if ( !m_editModules )
|
||||
connectivity->RecalculateRatsnest();
|
||||
|
||||
clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user