Process new sheets after drawing.

This commit is contained in:
Jeff Young 2019-05-06 15:08:05 +01:00
parent 207900e4f9
commit d12eee9c98
1 changed files with 8 additions and 1 deletions

View File

@ -855,7 +855,14 @@ int SCH_DRAWING_TOOL::doDrawSheet( SCH_SHEET *aSheet )
{
m_view->ClearPreview();
if( !aSheet->IsNew() )
if( aSheet->IsNew() )
{
if( m_frame->EditSheet( (SCH_SHEET*)aSheet, g_CurrentSheet, nullptr ) )
m_frame->AddItemToScreenAndUndoList( aSheet );
else
delete aSheet;
}
else
{
m_view->Hide( aSheet, false );
m_frame->RefreshItem( aSheet );