cvpcb was not filtering on the current library when USE_FP_LIB_TABLE.
<%s> being replaced with '%s' because the former in invisible in html panels. Cure some compiler warnings.
This commit is contained in:
@@ -550,19 +550,22 @@ MODULE* DISPLAY_FOOTPRINTS_FRAME::Get_Module( const wxString& aFootprintName )
|
||||
void DISPLAY_FOOTPRINTS_FRAME::InitDisplay()
|
||||
{
|
||||
wxString msg;
|
||||
CVPCB_MAINFRAME * parentframe = (CVPCB_MAINFRAME *) GetParent();
|
||||
|
||||
CVPCB_MAINFRAME* parentframe = (CVPCB_MAINFRAME *) GetParent();
|
||||
|
||||
wxString footprintName = parentframe->m_FootprintList->GetSelectedFootprint();
|
||||
|
||||
if( !footprintName.IsEmpty() )
|
||||
{
|
||||
msg.Printf( _( "Footprint: %s" ), GetChars( footprintName ) );
|
||||
|
||||
SetTitle( msg );
|
||||
FOOTPRINT_INFO* module_info = parentframe->m_footprints.GetModuleInfo( footprintName );
|
||||
|
||||
const wxChar *libname;
|
||||
|
||||
if( module_info )
|
||||
libname = GetChars( module_info->GetLibraryPath() );
|
||||
libname = GetChars( module_info->GetNickname() );
|
||||
else
|
||||
libname = GetChars( wxT( "???" ) );
|
||||
|
||||
@@ -582,7 +585,6 @@ void DISPLAY_FOOTPRINTS_FRAME::InitDisplay()
|
||||
GetBoard()->m_Modules.PushBack( module );
|
||||
|
||||
Zoom_Automatique( false );
|
||||
|
||||
}
|
||||
else // No footprint to display. Erase old footprint, if any
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user