Eeschema: remove the run cvpcb menu entry from eeschema tools menu when running as stand alone.
Pcbnew: fixes a problem exporting to DSN where the layername for B_Cu provided to the *.DSN file was incorrect
This commit is contained in:
parent
6ff03b41fd
commit
1c8fd8b207
|
@ -465,12 +465,15 @@ void SCH_EDIT_FRAME::ReCreateMenuBar()
|
||||||
|
|
||||||
toolsMenu->AppendSeparator();
|
toolsMenu->AppendSeparator();
|
||||||
|
|
||||||
// Run CvPcb
|
if( !Kiface().IsSingle() ) // only with a functional KIWAY, not single_top
|
||||||
AddMenuItem( toolsMenu,
|
{
|
||||||
ID_RUN_CVPCB,
|
// Run CvPcb
|
||||||
_( "A&ssign Component Footprint" ),
|
AddMenuItem( toolsMenu,
|
||||||
_( "Run CvPcb" ),
|
ID_RUN_CVPCB,
|
||||||
KiBitmap( cvpcb_xpm ) );
|
_( "A&ssign Component Footprint" ),
|
||||||
|
_( "Run CvPcb" ),
|
||||||
|
KiBitmap( cvpcb_xpm ) );
|
||||||
|
}
|
||||||
|
|
||||||
// Run Pcbnew
|
// Run Pcbnew
|
||||||
AddMenuItem( toolsMenu,
|
AddMenuItem( toolsMenu,
|
||||||
|
|
|
@ -109,13 +109,12 @@ void SPECCTRA_DB::buildLayerMaps( BOARD* aBoard )
|
||||||
|
|
||||||
for( unsigned i = 0; i < pcbLayer2kicad.size(); ++i )
|
for( unsigned i = 0; i < pcbLayer2kicad.size(); ++i )
|
||||||
{
|
{
|
||||||
if( i < layerCount-1 )
|
LAYER_ID id = ( i < layerCount-1 ) ? ToLAYER_ID( i ) : B_Cu;
|
||||||
pcbLayer2kicad[i] = ToLAYER_ID( i );
|
|
||||||
else
|
kicadLayer2pcb[i] = id;
|
||||||
pcbLayer2kicad[i] = B_Cu;
|
|
||||||
|
|
||||||
// save the specctra layer name in SPECCTRA_DB::layerIds for later.
|
// save the specctra layer name in SPECCTRA_DB::layerIds for later.
|
||||||
layerIds.push_back( TO_UTF8( aBoard->GetLayerName( ToLAYER_ID( i ) ) ) );
|
layerIds.push_back( TO_UTF8( aBoard->GetLayerName( id ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue