Fix broken placement of SCH_DIRECTIVE_LABELs
(cherry picked from commit c7cec5f21a)
This commit is contained in:
committed by
Seth Hillbrand
parent
1a7159bb09
commit
d29d5e77fe
@@ -693,6 +693,12 @@ bool DIALOG_LABEL_PROPERTIES::TransferDataFromWindow()
|
||||
}
|
||||
}
|
||||
}
|
||||
else if( m_labelList && m_currentLabel->Type() == SCH_DIRECTIVE_LABEL_T )
|
||||
{
|
||||
SCH_DIRECTIVE_LABEL* label =
|
||||
new SCH_DIRECTIVE_LABEL( *static_cast<SCH_DIRECTIVE_LABEL*>( m_currentLabel ) );
|
||||
m_labelList->push_back( std::unique_ptr<SCH_LABEL_BASE>( label ) );
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user