Skip to content
Snippets Groups Projects
Commit 7a820341 authored by Dan Nixon's avatar Dan Nixon
Browse files

Remove spec no restriction Re #13525

parent 022facbc
No related branches found
No related tags found
No related merge requests found
......@@ -252,16 +252,11 @@ namespace CustomInterfaces
double specMax = instDetails["spectra-max"].toDouble();
// Set spectra range
m_dblManager->setMinimum(m_properties["SpecMin"], specMin);
m_dblManager->setMaximum(m_properties["SpecMin"], specMax);
m_dblManager->setValue(m_properties["SpecMin"], specMin);
m_dblManager->setMinimum(m_properties["SpecMax"], specMin);
m_dblManager->setMaximum(m_properties["SpecMax"], specMax);
m_dblManager->setValue(m_properties["SpecMax"], specMax);
m_dblManager->setMinimum(m_properties["PreviewSpec"], specMin);
m_dblManager->setMaximum(m_properties["PreviewSpec"], specMax);
m_dblManager->setValue(m_properties["SpecMin"], specMin);
m_dblManager->setValue(m_properties["SpecMax"], specMax);
m_dblManager->setValue(m_properties["PreviewSpec"], specMin);
// Set peak and background ranges
......@@ -366,6 +361,16 @@ namespace CustomInterfaces
else if(prop == m_properties["BackgroundStart"]) backgroundRangeSelector->setMinimum(val);
else if(prop == m_properties["BackgroundEnd"]) backgroundRangeSelector->setMaximum(val);
else if(prop == m_properties["PreviewSpec"]) handleNewFile();
else if(prop == m_properties["SpecMin"])
{
m_dblManager->setMinimum(m_properties["SpecMax"], val+1);
m_dblManager->setMinimum(m_properties["PreviewSpec"], val+1);
}
else if(prop == m_properties["SpecMax"])
{
m_dblManager->setMaximum(m_properties["SpecMin"], val-1);
m_dblManager->setMaximum(m_properties["PreviewSpec"], val);
}
if(prop != m_properties["PreviewSpec"])
updatePreviewPlot();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment