Fix a few (minor) issues in microwave tools.
This commit is contained in:
parent
aedf24d944
commit
b395b55a20
|
@ -241,21 +241,21 @@ MODULE* PCB_EDIT_FRAME::Create_MuWaveComponent( int shape_type )
|
||||||
switch( shape_type )
|
switch( shape_type )
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
msg = _( "Gap" );
|
msg = _( "Gap Size:" );
|
||||||
cmp_name = wxT( "muwave_gap" );
|
cmp_name = "muwave_gap";
|
||||||
text_size = gap_size;
|
text_size = gap_size;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
msg = _( "Stub" );
|
msg = _( "Stub Size:" );
|
||||||
cmp_name = wxT( "muwave_stub" );
|
cmp_name = "muwave_stub";
|
||||||
text_size = gap_size;
|
text_size = gap_size;
|
||||||
pad_count = 2;
|
pad_count = 2;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
msg = _( "Arc Stub" );
|
msg = _( "Arc Stub Radius Value:" );
|
||||||
cmp_name = wxT( "muwave_arcstub" );
|
cmp_name = "muwave_arcstub";
|
||||||
pad_count = 1;
|
pad_count = 1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -579,7 +579,7 @@ MODULE* PCB_EDIT_FRAME::Create_MuWavePolygonShape()
|
||||||
int pad_count = 2;
|
int pad_count = 2;
|
||||||
EDGE_MODULE* edge;
|
EDGE_MODULE* edge;
|
||||||
|
|
||||||
MWAVE_POLYGONAL_SHAPE_DLG dlg( this, wxPoint( -1, -1 ) );
|
MWAVE_POLYGONAL_SHAPE_DLG dlg( this, wxDefaultPosition );
|
||||||
|
|
||||||
int ret = dlg.ShowModal();
|
int ret = dlg.ShowModal();
|
||||||
|
|
||||||
|
@ -671,6 +671,9 @@ MODULE* PCB_EDIT_FRAME::Create_MuWavePolygonShape()
|
||||||
}
|
}
|
||||||
|
|
||||||
edge->SetPolyPoints( polyPoints );
|
edge->SetPolyPoints( polyPoints );
|
||||||
|
// Set the polygon outline thickness to 0, only the polygonal shape is filled
|
||||||
|
// without extra thickness
|
||||||
|
edge->SetWidth( 0 );
|
||||||
PolyEdges.clear();
|
PolyEdges.clear();
|
||||||
module->CalculateBoundingBox();
|
module->CalculateBoundingBox();
|
||||||
GetBoard()->m_Status_Pcb = 0;
|
GetBoard()->m_Status_Pcb = 0;
|
||||||
|
|
Loading…
Reference in New Issue