More elegant way of handling interruption of current modifications.

This commit is contained in:
Maciej Suminski 2013-12-18 15:11:12 +01:00
parent c1d6e44413
commit fd0a3348ea
1 changed files with 2 additions and 2 deletions

View File

@ -148,8 +148,8 @@ int EDIT_TOOL::Main( TOOL_EVENT& aEvent )
if( restore )
{
// Modifications has to be rollbacked, so restore the previous state of items
wxCommandEvent dummy;
editFrame->GetBoardFromUndoList( dummy );
wxCommandEvent undoEvent( wxEVT_TOOL, wxID_UNDO );
wxPostEvent( editFrame, undoEvent );
}
else
{