Eeschema: fix a minor issue when creating a new hierarchical sheet (bad final size)

This commit is contained in:
jean-pierre charras 2011-01-26 09:09:52 +01:00
parent c63908b5bd
commit c4bff79694
1 changed files with 4 additions and 2 deletions

View File

@ -416,11 +416,13 @@ void SCH_SHEET::Place( SCH_EDIT_FRAME* frame, wxDC* DC )
/* Place list structures for new sheet. */
if( IsNew() )
{
// fix size and position of the new sheet
// using the last values set by the ManageCurseur function
frame->DrawPanel->ManageCurseur = NULL;
frame->DrawPanel->ForceCloseManageCurseur = NULL;
if( !frame->EditSheet( this, DC ) )
{
frame->GetScreen()->SetCurItem( NULL );
frame->DrawPanel->ManageCurseur = NULL;
frame->DrawPanel->ForceCloseManageCurseur = NULL;
Draw( frame->DrawPanel, DC, wxPoint( 0, 0 ), g_XorMode );
delete this;
return;