Browse code

Add dataProcessing pointer to spectrumList (issue #151)

jotsetung authored on 21/03/2018 15:07:14
Showing 1 changed files

... ...
@@ -634,6 +634,8 @@ void RcppPwiz::addSpectrumList(MSData& msd,
634 634
   
635 635
   // Now filling with new data
636 636
   shared_ptr<SpectrumListSimple> spectrumList(new SpectrumListSimple);
637
+  // Add the default Processing pointer (fix issue #151
638
+  spectrumList->dp = msd.dataProcessingPtrs[(msd.dataProcessingPtrs.size() - 1)];
637 639
   msd.run.spectrumListPtr = spectrumList;
638 640
   // TODO add also eventual processings.
639 641
   for (int i = 0; i < spctr_data.size(); i++) {