Browse Source

Eeschema: fix segfault when drawing new sheet after deleting existing sheet with the same file. (fixes lp:1538510)

pull/11/head
Wayne Stambaugh 10 years ago
parent
commit
783f818f19
  1. 2
      eeschema/sheet.cpp

2
eeschema/sheet.cpp

@ -357,7 +357,7 @@ SCH_SHEET* SCH_EDIT_FRAME::CreateSheet( wxDC* aDC )
sheet->SetFlags( IS_NEW | IS_RESIZED );
sheet->SetTimeStamp( GetNewTimeStamp() );
sheet->SetParent( GetScreen() );
sheet->SetParent( GetCurrentSheet().Last() );
sheet->SetScreen( NULL );
// need to check if this is being added to the GetDrawItems().

Loading…
Cancel
Save