display_footprints: Use Add() method to push_back modules
Although we can get the reference from Modules(), Add() should be used for future-proofing
This commit is contained in:
parent
99756efea5
commit
6ddc2fe02d
|
@ -415,7 +415,7 @@ void DISPLAY_FOOTPRINTS_FRAME::InitDisplay()
|
|||
}
|
||||
|
||||
if( module )
|
||||
GetBoard()->Modules().push_back( module );
|
||||
GetBoard()->Add( module );
|
||||
|
||||
if( module_info )
|
||||
SetStatusText( wxString::Format( _( "Lib: %s" ), module_info->GetLibNickname() ), 0 );
|
||||
|
|
Loading…
Reference in New Issue