** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: dialogs.cpp,v 1.50 2001/03/11 15:27:30 kevin Exp $
+** $Id: dialogs.cpp,v 1.51 2001/03/11 17:55:29 kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
pTopSizer->Add (new wxStaticLine (this, -1, wxDefaultPosition, wxSize(3,3), wxHORIZONTAL), 0, wxEXPAND | wxALL, 5);
- wxString asTitle[] = {"Median", "Mode", "Mean"};
+ wxString asTitle[] = {"Mode", "Median", "Mean"};
m_pRadioBoxCenter = new wxRadioBox (this, -1, _T("Center"), wxDefaultPosition, wxDefaultSize, 3, asTitle, 1, wxRA_SPECIFY_COLS);
m_pRadioBoxCenter->SetSelection (0);
DialogAutoScaleParameters::getMinMax (double* pMin, double* pMax)
{
int iCenter = m_pRadioBoxCenter->GetSelection();
- double dCenter = m_dMedian;
+ double dCenter = m_dMode;
if (iCenter == 1)
- dCenter = m_dMode;
+ dCenter = m_dMedian;
else if (iCenter == 2)
- dCenter = m_dMode;
+ dCenter = m_dMean;
wxString sStddevFactor = m_pTextCtrlStdDevFactor->GetValue();
double dValue;