Commit 2faf4296 authored by jean-pierre charras's avatar jean-pierre charras

Fix bug in SCH_SHEET copy constructor (size not copied, so copied hierarchical...

Fix bug in SCH_SHEET copy constructor (size not copied, so copied hierarchical sheets have a 0 size), and a minor bug in block save.
parent 952f9f9b
......@@ -541,6 +541,8 @@ void SaveStructListForPaste( PICKED_ITEMS_LIST& aItemsList )
item.m_UndoRedoStatus = UR_DELETED;
for( unsigned ii = 0; ii < aItemsList.GetCount(); ii++ )
{
// Clear m_Flag member of selected items:
aItemsList.GetPickedItem( ii )->m_Flags = 0;
/* Make a copy of the original picked item. */
SCH_ITEM* DrawStructCopy = DuplicateStruct( (SCH_ITEM*) aItemsList.GetPickedItem( ii ) );
DrawStructCopy->SetParent( NULL );
......
......@@ -45,6 +45,8 @@ SCH_SHEET::SCH_SHEET( const SCH_SHEET& aSheet ) :
SCH_ITEM( aSheet )
{
m_Pos = aSheet.m_Pos;
m_Size = aSheet.m_Size;
m_Layer = aSheet.m_Layer;
m_TimeStamp = aSheet.m_TimeStamp;
m_SheetNameSize = aSheet.m_SheetNameSize;
m_FileNameSize = aSheet.m_FileNameSize;
......
release version:
2010 dec 22 (BZR testing 2676)
2010 dec 23 (BZR 2682)
files (.zip,.tgz):
kicad-2010-12-22-testing
kicad-2010-12-23
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