Very minor fixes in Gerbview and Kicad:

Gerbview: fix X2 z order display of Adhesive (Glue) layers.
Kicad: very minor cosmetic enhancement in Create Project dialog.
This commit is contained in:
jean-pierre charras 2018-03-18 16:04:01 +01:00
parent e0e0687cd7
commit 827b818b5d
2 changed files with 10 additions and 2 deletions

View File

@ -292,7 +292,15 @@ void X2_ATTRIBUTE_FILEFUNCTION::set_Z_Order()
// Silk screen layer: the priority is top then bottom
m_z_order = 3; // for top
if( GetFileType().IsSameAs( wxT( "Legend" ), false ) )
if( GetBrdLayerId().IsSameAs( wxT( "Bot" ), false ) )
m_z_order = -m_z_order;
}
if( GetFileType().IsSameAs( wxT( "Glue" ), false ) )
{
// Glue spots used to fix components to the board prior to soldering:
// the priority is top then bottom
m_z_order = 4; // for top
if( GetBrdLayerId().IsSameAs( wxT( "Bot" ), false ) )
m_z_order = -m_z_order;

View File

@ -196,7 +196,7 @@ public:
m_cbCreateDir->SetValue( true );
wxBoxSizer* sizer = new wxBoxSizer( wxHORIZONTAL );
sizer->Add( m_cbCreateDir );
sizer->Add( m_cbCreateDir, 0, wxALL, 8 );
SetSizerAndFit( sizer );
}