Fixed an issue (footprint name not read from netlist) when using a netlist without the corresponding .cmp file.

This commit is contained in:
charras 2010-03-11 08:49:03 +00:00
parent 0173e61d2c
commit a5c06c224b
1 changed files with 4 additions and 3 deletions

View File

@ -457,8 +457,8 @@ MODULE* ReadNetModule( WinEDA_PcbFrame* aFrame,
{
if( TstOnly != TESTONLY )
{
NameLibCmp = TextNameLibMod;
if( *UseFichCmp )
NameLibCmp = TextNameLibMod; // Use footprint name from netlist
if( *UseFichCmp ) // Try to get footprint name from .cmp file
{
if( aSelect_By_Timestamp )
{
@ -515,7 +515,8 @@ is [%s] and netlist said [%s]\n" ),
if( Module == NULL ) /* a new module must be loaded from libs */
{
if( *UseFichCmp )
NameLibCmp = TextNameLibMod; // Use footprint name from netlist
if( *UseFichCmp ) // Try to get footprint name from .cmp file
{
if( aSelect_By_Timestamp == 1 )
{