pcbnew: erroneous extension when savin *.mdc files (saved as *..mdc)
This commit is contained in:
parent
f02980cdaf
commit
cfc3d9194d
|
@ -302,29 +302,25 @@ int WinEDA_ViewlibFrame::BestZoom()
|
||||||
void WinEDA_ViewlibFrame::ReCreateListLib()
|
void WinEDA_ViewlibFrame::ReCreateListLib()
|
||||||
/******************************************/
|
/******************************************/
|
||||||
{
|
{
|
||||||
const wxChar** ListNames, ** names;
|
|
||||||
int ii;
|
int ii;
|
||||||
|
LibraryStruct* Lib;
|
||||||
bool found = FALSE;
|
bool found = FALSE;
|
||||||
|
|
||||||
if( m_LibList == NULL )
|
if( m_LibList == NULL )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ListNames = GetLibNames();
|
|
||||||
|
|
||||||
m_LibList->Clear();
|
m_LibList->Clear();
|
||||||
for( names = ListNames, ii = 0; *names != NULL; names++, ii++ )
|
for( ii = 0, Lib = g_LibraryList; Lib != NULL; Lib = Lib->m_Pnext, ii++ )
|
||||||
{
|
{
|
||||||
m_LibList->Append( *names );
|
m_LibList->Append(Lib->m_Name);
|
||||||
if( g_CurrentViewLibraryName.Cmp( *names ) == 0 )
|
if( g_CurrentViewLibraryName.Cmp( Lib->m_Name ) == 0 )
|
||||||
{
|
{
|
||||||
m_LibList->SetSelection( ii, TRUE );
|
m_LibList->SetSelection( ii, TRUE );
|
||||||
found = TRUE;
|
found = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
free( ListNames );
|
/* If not found, clear current library selection because it can be deleted after a config change
|
||||||
|
|
||||||
/* Clear current library because it can be deleted after a config change
|
|
||||||
*/
|
*/
|
||||||
if( !found )
|
if( !found )
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
#define ENTETE_LIBRAIRIE "PCBNEW-LibModule-V1"
|
#define ENTETE_LIBRAIRIE "PCBNEW-LibModule-V1"
|
||||||
#define ENTETE_LIBDOC "PCBNEW-LibDoc----V1"
|
#define ENTETE_LIBDOC "PCBNEW-LibDoc----V1"
|
||||||
#define L_ENTETE_LIB 18
|
#define L_ENTETE_LIB 18
|
||||||
#define EXT_DOC wxT( ".mdc" )
|
#define EXT_DOC wxT( "mdc" )
|
||||||
|
|
||||||
|
|
||||||
/* Bits indicateurs du membre .Status, pour pistes, modules... */
|
/* Bits indicateurs du membre .Status, pour pistes, modules... */
|
||||||
|
|
Loading…
Reference in New Issue