Skip to content

Commit

Permalink
Fix CalStepDialog to use optimum distance for 'reset' function
Browse files Browse the repository at this point in the history
  • Loading branch information
bwdev01 committed Jul 23, 2018
1 parent bd96f58 commit 7737397
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion calstep_dialog.cpp
Expand Up @@ -250,8 +250,9 @@ void CalstepDialog::OnSpinCtrlDouble(wxSpinDoubleEvent& evt)

void CalstepDialog::OnReset(wxCommandEvent& evt)
{
int bestDistance = GetCalibrationDistance(m_iFocalLength, m_pPixelSize->GetValue(), m_binningChoice->GetSelection() + 1);
m_pDistance->SetValue(bestDistance);
m_pNumSteps->SetValue(DEFAULT_STEPS);
m_pDistance->SetValue(DEFAULT_DISTANCE);
DoRecalc();
}

Expand Down

0 comments on commit 7737397

Please sign in to comment.