From bd551d13ac069e3971678861227716f39653604e Mon Sep 17 00:00:00 2001 From: nemu Date: Thu, 22 Aug 2013 09:20:03 +0000 Subject: [PATCH] fixes issue with accidental 2 empty lines in nemu-files SVN-262 --- src/classes/PRunDataHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/PRunDataHandler.cpp b/src/classes/PRunDataHandler.cpp index b1668686..55662e69 100644 --- a/src/classes/PRunDataHandler.cpp +++ b/src/classes/PRunDataHandler.cpp @@ -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(dataSet->GetData()->at(j));