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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user