fixes issue with accidental 2 empty lines in nemu-files SVN-262

This commit is contained in:
nemu
2013-08-22 09:20:03 +00:00
parent 46d8e97127
commit bd551d13ac

View File

@ -5060,7 +5060,7 @@ Bool_t PRunDataHandler::WriteWkmFile(TString fln)
cout << dataRebin << " ";
count++;
dataRebin = 0;
if ((count > 0) && (count % no_of_bins_per_line == 0))
if ((count > 0) && (count % no_of_bins_per_line == 0) && (j != dataSet->GetData()->size()-1))
cout << endl;
} else {
dataRebin += static_cast<Int_t>(dataSet->GetData()->at(j));