Fix issue with Arc pad primitive dialog having center and start swapped.
Fixes: lp:1842199 * https://bugs.launchpad.net/kicad/+bug/1842199
This commit is contained in:
parent
7ad98b8a7d
commit
f1790c24e5
|
@ -114,11 +114,11 @@ bool DIALOG_PAD_PRIMITIVES_PROPERTIES::TransferDataToWindow()
|
|||
|
||||
case S_ARC: // Arc with rounded ends
|
||||
SetTitle( _( "Arc" ) );
|
||||
m_startX.SetValue( m_shape->m_End.x ); // confusingly, the start point of the arc
|
||||
m_startY.SetValue( m_shape->m_End.y );
|
||||
m_staticTextPosEnd->SetLabel( _( "Center" ) );
|
||||
m_startX.SetValue( m_shape->m_Start.x ); // Start point of arc
|
||||
m_startY.SetValue( m_shape->m_Start.y );
|
||||
m_endX.SetValue( m_shape->m_End.x ); // arc center
|
||||
m_endY.SetValue( m_shape->m_End.y );
|
||||
m_endX.SetValue( m_shape->m_Start.x ); // arc center
|
||||
m_endY.SetValue( m_shape->m_Start.y );
|
||||
m_radiusLabel->SetLabel( _( "Angle:" ) );
|
||||
m_radius.SetUnits( DEGREES );
|
||||
m_radius.SetValue( m_shape->m_ArcAngle );
|
||||
|
@ -196,12 +196,12 @@ bool DIALOG_PAD_PRIMITIVES_PROPERTIES::TransferDataFromWindow()
|
|||
break;
|
||||
|
||||
case S_ARC: // Arc with rounded ends
|
||||
// Start point of arc
|
||||
m_shape->m_Start.x = m_startX.GetValue();
|
||||
m_shape->m_Start.y = m_startY.GetValue();
|
||||
// arc center
|
||||
m_shape->m_End.x = m_endX.GetValue();
|
||||
m_shape->m_End.y = m_endY.GetValue();
|
||||
// NB: we store the center of the arc in m_Start, and, confusingly,
|
||||
// the start point in m_End
|
||||
m_shape->m_Start.x = m_endX.GetValue();
|
||||
m_shape->m_Start.y = m_endY.GetValue();
|
||||
m_shape->m_End.x = m_startX.GetValue();
|
||||
m_shape->m_End.y = m_startY.GetValue();
|
||||
// arc angle
|
||||
m_shape->m_ArcAngle = m_radius.GetValue();
|
||||
break;
|
||||
|
|
|
@ -8355,7 +8355,7 @@
|
|||
<property name="non_flexible_grow_mode">wxFLEX_GROWMODE_SPECIFIED</property>
|
||||
<property name="permission">none</property>
|
||||
<property name="rows">0</property>
|
||||
<property name="vgap">3</property>
|
||||
<property name="vgap">5</property>
|
||||
<object class="sizeritem" expanded="0">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxALIGN_CENTER_VERTICAL|wxLEFT</property>
|
||||
|
@ -8821,7 +8821,7 @@
|
|||
<property name="gripper">0</property>
|
||||
<property name="hidden">0</property>
|
||||
<property name="id">wxID_ANY</property>
|
||||
<property name="label">Control Point 1</property>
|
||||
<property name="label">Control point 1</property>
|
||||
<property name="markup">0</property>
|
||||
<property name="max_size"></property>
|
||||
<property name="maximize_button">0</property>
|
||||
|
@ -8913,7 +8913,7 @@
|
|||
</object>
|
||||
<object class="sizeritem" expanded="1">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxALL</property>
|
||||
<property name="flag">wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT</property>
|
||||
<property name="proportion">0</property>
|
||||
<object class="wxTextCtrl" expanded="1">
|
||||
<property name="BottomDockable">1</property>
|
||||
|
@ -9099,7 +9099,7 @@
|
|||
</object>
|
||||
<object class="sizeritem" expanded="1">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxALL</property>
|
||||
<property name="flag">wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT</property>
|
||||
<property name="proportion">0</property>
|
||||
<object class="wxTextCtrl" expanded="1">
|
||||
<property name="BottomDockable">1</property>
|
||||
|
@ -9254,7 +9254,7 @@
|
|||
<property name="gripper">0</property>
|
||||
<property name="hidden">0</property>
|
||||
<property name="id">wxID_ANY</property>
|
||||
<property name="label">Control Point 2</property>
|
||||
<property name="label">Control point 2</property>
|
||||
<property name="markup">0</property>
|
||||
<property name="max_size"></property>
|
||||
<property name="maximize_button">0</property>
|
||||
|
@ -9346,7 +9346,7 @@
|
|||
</object>
|
||||
<object class="sizeritem" expanded="1">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxALL</property>
|
||||
<property name="flag">wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT</property>
|
||||
<property name="proportion">0</property>
|
||||
<object class="wxTextCtrl" expanded="1">
|
||||
<property name="BottomDockable">1</property>
|
||||
|
@ -9532,7 +9532,7 @@
|
|||
</object>
|
||||
<object class="sizeritem" expanded="1">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxALL</property>
|
||||
<property name="flag">wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT</property>
|
||||
<property name="proportion">0</property>
|
||||
<object class="wxTextCtrl" expanded="1">
|
||||
<property name="BottomDockable">1</property>
|
||||
|
|
Loading…
Reference in New Issue