solved pcbnew: minor bug when only one copper layer selected: zone properties layer list displayed component layer instead of copper layer
This commit is contained in:
parent
6f84112375
commit
667a6498de
Binary file not shown.
2016
internat/fr/kicad.po
2016
internat/fr/kicad.po
File diff suppressed because it is too large
Load Diff
|
@ -353,13 +353,14 @@ void WinEDA_ZoneFrame::OnInitDialog( wxInitDialogEvent& event )
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* build copper layers list */
|
||||||
int layer_cnt = board->GetCopperLayerCount();
|
int layer_cnt = board->GetCopperLayerCount();
|
||||||
for( int ii = 0; ii < board->GetCopperLayerCount(); ii++ )
|
for( int ii = 0; ii < board->GetCopperLayerCount(); ii++ )
|
||||||
{
|
{
|
||||||
wxString msg;
|
wxString msg;
|
||||||
int layer_number = COPPER_LAYER_N;
|
int layer_number = COPPER_LAYER_N;
|
||||||
|
|
||||||
if( layer_cnt == 0 || ii < layer_cnt - 1 )
|
if( layer_cnt <= 1 || ii < layer_cnt - 1 )
|
||||||
layer_number = ii;
|
layer_number = ii;
|
||||||
else if( ii == layer_cnt - 1 )
|
else if( ii == layer_cnt - 1 )
|
||||||
layer_number = LAYER_CMP_N;
|
layer_number = LAYER_CMP_N;
|
||||||
|
|
|
@ -898,6 +898,7 @@ int WinEDA_PcbFrame::Fill_Zone( wxDC* DC, ZONE_CONTAINER* zone_container, bool v
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
zone_container->m_FilledPolysList.clear();
|
||||||
zone_container->m_GridFillValue = g_GridRoutingSize;
|
zone_container->m_GridFillValue = g_GridRoutingSize;
|
||||||
error_level = zone_container->Fill_Zone( this, DC, verbose );
|
error_level = zone_container->Fill_Zone( this, DC, verbose );
|
||||||
}
|
}
|
||||||
|
@ -935,6 +936,7 @@ int WinEDA_PcbFrame::Fill_All_Zones( wxDC* DC, bool verbose )
|
||||||
for( int ii = 0; ii < m_Pcb->GetAreaCount(); ii++ )
|
for( int ii = 0; ii < m_Pcb->GetAreaCount(); ii++ )
|
||||||
{
|
{
|
||||||
zone_container = m_Pcb->GetArea( ii );
|
zone_container = m_Pcb->GetArea( ii );
|
||||||
|
zone_container->m_FilledPolysList.clear();
|
||||||
error_level = Fill_Zone( NULL, zone_container, verbose );
|
error_level = Fill_Zone( NULL, zone_container, verbose );
|
||||||
if( error_level && !verbose )
|
if( error_level && !verbose )
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue