Skip to content

Commit

Permalink
Refs #5421 Removed default resolution range from Quasi and Stretch.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Jackson committed Sep 20, 2013
1 parent 32ff420 commit 613a0cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
13 changes: 1 addition & 12 deletions Code/Mantid/MantidQt/CustomInterfaces/src/Quasi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,19 +147,8 @@ namespace MantidQt
void Quasi::handleSampleInputReady(const QString& filename)
{
plotMiniPlot(filename, 0);
std::pair<double,double> res;
std::pair<double,double> range = getCurveRange();

//Use the values from the instrument parameter file if we can
if(getInstrumentResolution(filename, res))
{
setMiniPlotGuides(m_properties["EMin"], m_properties["EMax"], res);
}
else
{
setMiniPlotGuides(m_properties["EMin"], m_properties["EMax"], range);
}

setMiniPlotGuides(m_properties["EMin"], m_properties["EMax"], range);
setPlotRange(m_properties["EMin"], m_properties["EMax"], range);
}

Expand Down
13 changes: 1 addition & 12 deletions Code/Mantid/MantidQt/CustomInterfaces/src/Stretch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,19 +118,8 @@ namespace MantidQt
void Stretch::handleSampleInputReady(const QString& filename)
{
plotMiniPlot(filename, 0);
std::pair<double,double> res;
std::pair<double,double> range = getCurveRange();

//Use the values from the instrument parameter file if we can
if(getInstrumentResolution(filename, res))
{
setMiniPlotGuides(m_properties["EMin"], m_properties["EMax"], res);
}
else
{
setMiniPlotGuides(m_properties["EMin"], m_properties["EMax"], range);
}

setMiniPlotGuides(m_properties["EMin"], m_properties["EMax"], range);
setPlotRange(m_properties["EMin"], m_properties["EMax"], range);
}

Expand Down

0 comments on commit 613a0cf

Please sign in to comment.