21{
22 if(m_checkBoxAutomaticLabel->GetValue()) {
23 m_workspace->EnableAutoHeatMapLabel();
24 }
25 else {
26 m_workspace->EnableAutoHeatMapLabel(false);
27 double maxVoltage, minVoltage;
28
30 _("Value entered incorrectly in the field \"Label max voltage\".")))
31 return false;
33 _("Value entered incorrectly in the field \"Label min voltage\".")))
34 return false;
35
36 m_workspace->GetHeatMap()->SetLabelLimits(static_cast<float>(minVoltage), static_cast<float>(maxVoltage));
37 }
38 return true;
39}
static bool DoubleFromString(wxWindow *parent, wxString strValue, double &value, wxString errorMsg)
Get a double value from a string. Show a error message if the conversion fail.