Keep dialog fields in sync with dummyPad values.
Fixes https://gitlab.com/kicad/code/kicad/issues/8294
This commit is contained in:
parent
93d42e9902
commit
953f579d59
|
@ -317,9 +317,6 @@ void DIALOG_PAD_PROPERTIES::updateRoundRectCornerValues()
|
|||
{
|
||||
// Note: use m_tcCornerSizeRatio->ChangeValue() to avoid generating a wxEVT_TEXT event
|
||||
|
||||
if( m_dummyPad->GetShape() == PAD_SHAPE_ROUNDRECT ||
|
||||
m_dummyPad->GetShape() == PAD_SHAPE_CHAMFERED_RECT )
|
||||
{
|
||||
wxString ratio = wxString::Format( "%.1f", m_dummyPad->GetRoundRectRadiusRatio() * 100 );
|
||||
m_tcCornerSizeRatio->ChangeValue( ratio );
|
||||
m_tcMixedCornerSizeRatio->ChangeValue( ratio );
|
||||
|
@ -329,7 +326,6 @@ void DIALOG_PAD_PROPERTIES::updateRoundRectCornerValues()
|
|||
m_tcChamferRatio->ChangeValue( ratio );
|
||||
m_tcMixedChamferRatio->ChangeValue( ratio );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void DIALOG_PAD_PROPERTIES::onCornerRadiusChange( wxCommandEvent& event )
|
||||
|
|
Loading…
Reference in New Issue