← Back to team overview

kicad-developers team mailing list archive

Patch: Inherit page size on sheet creation

 

The following patch to kicad-2006-03-28 causes newly-created
hierarchical sheets to have the same page size as their parent.

diff -c -r kicad-dev-2006-03-28/eeschema/divers.cpp
kicad-dev/eeschema/divers.cpp
*** kicad-dev-2006-03-28/eeschema/divers.cpp Mon Jan 24 10:54:10 2005
--- kicad-dev/eeschema/divers.cpp Thu Mar 30 22:28:57 2006
***************
*** 28,34 ****
NewScreen = new SCH_SCREEN(NULL, frame_source, SCHEMATIC_FRAME);
  
NewScreen->SetRefreshReq();
! if(OldScreen) NewScreen->m_Company = OldScreen->m_Company;
NewScreen->m_TimeStamp = TimeStamp;
  
NewScreen->Pback = OldScreen;
--- 28,38 ----
NewScreen = new SCH_SCREEN(NULL, frame_source, SCHEMATIC_FRAME);
  
NewScreen->SetRefreshReq();
! if(OldScreen)
! {
! NewScreen->m_Company = OldScreen->m_Company;
! NewScreen->m_CurrentSheet = OldScreen->m_CurrentSheet;
! }
NewScreen->m_TimeStamp = TimeStamp;
  
NewScreen->Pback = OldScreen;