eeschema: Set sheet unit number when setting unit
The auto increment needs to ensure the unit number is updated in two places. Hierarchy and draw list. Fixes: lp:1851431 * https://bugs.launchpad.net/kicad/+bug/1851431
This commit is contained in:
parent
19c643b29a
commit
81ce588a00
|
@ -207,6 +207,7 @@ int SCH_DRAWING_TOOLS::PlaceComponent( const TOOL_EVENT& aEvent )
|
|||
next_comp = static_cast<SCH_COMPONENT*>( component->Duplicate() );
|
||||
next_comp->SetFlags( IS_NEW | IS_MOVED );
|
||||
next_comp->SetUnit( new_unit );
|
||||
next_comp->SetUnitSelection( g_CurrentSheet, new_unit );
|
||||
next_comp->SetTimeStamp( GetNewTimeStamp() );
|
||||
|
||||
if( m_frame->GetAutoplaceFields() )
|
||||
|
|
Loading…
Reference in New Issue