From c5080c81cad9ab583818a28fed6be3eb6b0a8e99 Mon Sep 17 00:00:00 2001 From: Peter Peterson <petersonpf@ornl.gov> Date: Wed, 6 Apr 2011 12:30:15 +0000 Subject: [PATCH] Fixed broken header (again). Refs #2320 and #2647. --- Code/Mantid/Framework/DataHandling/src/SaveGSS.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Code/Mantid/Framework/DataHandling/src/SaveGSS.cpp b/Code/Mantid/Framework/DataHandling/src/SaveGSS.cpp index 62a0dbb2af9..adf7487ca4d 100644 --- a/Code/Mantid/Framework/DataHandling/src/SaveGSS.cpp +++ b/Code/Mantid/Framework/DataHandling/src/SaveGSS.cpp @@ -278,8 +278,10 @@ void SaveGSS::writeHeaders(const std::string &format, std::ostream& os, Mantid:: os <<"# File generated by Mantid:\n"; os <<"# Instrument: " << workspace->getBaseInstrument()->getName() << "\n"; os <<"# From workspace named : " << workspace->getName(); + if (getProperty("MultiplyByBinWidth")) + os << ", with Y multiplied by the bin widths."; + os << "\n"; if (format.compare(SLOG) == 0) { - os << "# Sample Temperature: "; writeValue(os, runinfo, "SampleTemp"); os << " Freq: "; @@ -307,9 +309,7 @@ void SaveGSS::writeHeaders(const std::string &format, std::ostream& os, Mantid:: os << "\n"; } - if (getProperty("MultiplyByBinWidth")) - os << ", with Y multiplied by the bin widths."; - os << "\n"; + return; } -- GitLab