Fix crash when <esc>ing from Hierarchical Sheet drawing tool.

This commit is contained in:
Jeff Young 2019-04-24 13:41:49 +01:00
parent e687d14903
commit e046e8f593
1 changed files with 1 additions and 0 deletions

View File

@ -1250,6 +1250,7 @@ int SCH_DRAWING_TOOL::doDrawSheet( SCH_SHEET *aSheet )
else if( aSheet )
{
delete aSheet;
aSheet = nullptr;
m_frame->GetScreen()->SetCurItem( nullptr );
}
else