Ticket #9130: 9130.patch

File 9130.patch, 757 bytes (added by Gesner Passos, 7 years ago)

Using spectrum number as spectra id caused the problem.

  • Code/Mantid/MantidQt/CustomInterfaces/src/SANSDiagnostics.cpp

    diff --git a/Code/Mantid/MantidQt/CustomInterfaces/src/SANSDiagnostics.cpp b/Code/Mantid/MantidQt/CustomInterfaces/src/SANSDiagnostics.cpp
    index 22a221e..b3b9b06 100644
    a b namespace MantidQt 
    453453          // if detector id inside the range 
    454454          if (detID >= rectDet->getMinimumDetectorId() && detID <= rectDet->getMaximumDetectorId()) 
    455455          { 
    456             aux = spec->getSpectrumNo(); 
     456            aux = spec->getSpectrumNo() -1; // to transfor spectrum number into spectrum index 
    457457            if (aux > max_spec_index) 
    458458              max_spec_index = aux; 
    459459            if (aux < min_spec_index)