Commit c4bff796 authored by jean-pierre charras's avatar jean-pierre charras

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

parent c63908b5
...@@ -416,11 +416,13 @@ void SCH_SHEET::Place( SCH_EDIT_FRAME* frame, wxDC* DC ) ...@@ -416,11 +416,13 @@ void SCH_SHEET::Place( SCH_EDIT_FRAME* frame, wxDC* DC )
/* Place list structures for new sheet. */ /* Place list structures for new sheet. */
if( IsNew() ) 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 ) ) if( !frame->EditSheet( this, DC ) )
{ {
frame->GetScreen()->SetCurItem( NULL ); frame->GetScreen()->SetCurItem( NULL );
frame->DrawPanel->ManageCurseur = NULL;
frame->DrawPanel->ForceCloseManageCurseur = NULL;
Draw( frame->DrawPanel, DC, wxPoint( 0, 0 ), g_XorMode ); Draw( frame->DrawPanel, DC, wxPoint( 0, 0 ), g_XorMode );
delete this; delete this;
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment