diff --git a/pcbnew/dialogs/dialog_move_exact.cpp b/pcbnew/dialogs/dialog_move_exact.cpp index 08bbc48ca3..e92499dae8 100644 --- a/pcbnew/dialogs/dialog_move_exact.cpp +++ b/pcbnew/dialogs/dialog_move_exact.cpp @@ -245,9 +245,9 @@ void DIALOG_MOVE_EXACT::OnTextFocusLost( wxFocusEvent& event ) void DIALOG_MOVE_EXACT::OnTextChanged( wxCommandEvent& event ) { - int delta_x = m_moveX.GetValue(); - int delta_y = m_moveY.GetValue(); - int max_border = std::numeric_limits::max() * 0.7071; + double delta_x = m_moveX.GetValue(); + double delta_y = m_moveY.GetValue(); + double max_border = std::numeric_limits::max() * 0.7071; if( m_bbox.GetLeft() + delta_x < -max_border || m_bbox.GetRight() + delta_x > max_border ||