Commit a5c06c22 authored by charras's avatar charras

Fixed an issue (footprint name not read from netlist) when using a netlist...

Fixed an issue (footprint name not read from netlist) when using a netlist without the corresponding .cmp file.
parent 0173e61d
...@@ -457,8 +457,8 @@ MODULE* ReadNetModule( WinEDA_PcbFrame* aFrame, ...@@ -457,8 +457,8 @@ MODULE* ReadNetModule( WinEDA_PcbFrame* aFrame,
{ {
if( TstOnly != TESTONLY ) if( TstOnly != TESTONLY )
{ {
NameLibCmp = TextNameLibMod; NameLibCmp = TextNameLibMod; // Use footprint name from netlist
if( *UseFichCmp ) if( *UseFichCmp ) // Try to get footprint name from .cmp file
{ {
if( aSelect_By_Timestamp ) if( aSelect_By_Timestamp )
{ {
...@@ -515,7 +515,8 @@ is [%s] and netlist said [%s]\n" ), ...@@ -515,7 +515,8 @@ is [%s] and netlist said [%s]\n" ),
if( Module == NULL ) /* a new module must be loaded from libs */ 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 ) if( aSelect_By_Timestamp == 1 )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment