Minor fix: replace assert by wxASSERT in dialog (better to keep trace of an assert inside a wx application)
This commit is contained in:
parent
2476e88c9d
commit
36e59065ff
|
@ -179,9 +179,9 @@ void DIALOG_POSITION_RELATIVE::OnSelectItemClick( wxCommandEvent& event )
|
||||||
{
|
{
|
||||||
event.Skip();
|
event.Skip();
|
||||||
|
|
||||||
|
|
||||||
POSITION_RELATIVE_TOOL* posrelTool = m_toolMgr->GetTool<POSITION_RELATIVE_TOOL>();
|
POSITION_RELATIVE_TOOL* posrelTool = m_toolMgr->GetTool<POSITION_RELATIVE_TOOL>();
|
||||||
assert( posrelTool );
|
wxASSERT( posrelTool );
|
||||||
|
|
||||||
m_toolMgr->RunAction( PCB_ACTIONS::selectpositionRelativeItem, true );
|
m_toolMgr->RunAction( PCB_ACTIONS::selectpositionRelativeItem, true );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -189,7 +189,6 @@ void DIALOG_POSITION_RELATIVE::OnSelectItemClick( wxCommandEvent& event )
|
||||||
void DIALOG_POSITION_RELATIVE::UpdateAnchor( BOARD_ITEM* aBoardItem )
|
void DIALOG_POSITION_RELATIVE::UpdateAnchor( BOARD_ITEM* aBoardItem )
|
||||||
{
|
{
|
||||||
m_anchor_position = aBoardItem->GetPosition();
|
m_anchor_position = aBoardItem->GetPosition();
|
||||||
|
|
||||||
PutValueInLocalUnits( *m_anchor_x, m_anchor_position.x );
|
PutValueInLocalUnits( *m_anchor_x, m_anchor_position.x );
|
||||||
PutValueInLocalUnits( *m_anchor_y, m_anchor_position.y );
|
PutValueInLocalUnits( *m_anchor_y, m_anchor_position.y );
|
||||||
}
|
}
|
||||||
|
@ -210,8 +209,7 @@ void DIALOG_POSITION_RELATIVE::OnOkClick( wxCommandEvent& event )
|
||||||
m_options.entry2 = DoubleValueFromString( UNSCALED_UNITS, m_yEntry->GetValue() );
|
m_options.entry2 = DoubleValueFromString( UNSCALED_UNITS, m_yEntry->GetValue() );
|
||||||
m_options.entryRotation = DoubleValueFromString( UNSCALED_UNITS, m_rotEntry->GetValue() );
|
m_options.entryRotation = DoubleValueFromString( UNSCALED_UNITS, m_rotEntry->GetValue() );
|
||||||
POSITION_RELATIVE_TOOL* posrelTool = m_toolMgr->GetTool<POSITION_RELATIVE_TOOL>();
|
POSITION_RELATIVE_TOOL* posrelTool = m_toolMgr->GetTool<POSITION_RELATIVE_TOOL>();
|
||||||
assert( posrelTool );
|
wxASSERT( posrelTool );
|
||||||
|
|
||||||
|
|
||||||
posrelTool->RelativeItemSelectionMove( m_anchor_position, m_translation, m_rotation );
|
posrelTool->RelativeItemSelectionMove( m_anchor_position, m_translation, m_rotation );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue