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:
Seth Hillbrand 2019-10-29 23:04:01 -07:00
parent 19c643b29a
commit 81ce588a00
1 changed files with 1 additions and 0 deletions

View File

@ -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() )