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 20:06:11 -07:00
parent 99756efea5
commit 6ddc2fe02d
+1 -1
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 );