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:
Seth Hillbrand 2019-06-02 12:59:02 -07:00
parent 99756efea5
commit 6ddc2fe02d
1 changed files with 1 additions and 1 deletions

View File

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