From 6cbea49264901efb71945a3986d78a29c1c7d5d2 Mon Sep 17 00:00:00 2001 From: Nick Draper Date: Thu, 27 Nov 2014 16:08:59 +0000 Subject: [PATCH] re #10509 solve failing test --- Code/Mantid/Framework/API/src/ExperimentInfo.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Code/Mantid/Framework/API/src/ExperimentInfo.cpp b/Code/Mantid/Framework/API/src/ExperimentInfo.cpp index a77fb9a692aa..bc6e25f8e937 100644 --- a/Code/Mantid/Framework/API/src/ExperimentInfo.cpp +++ b/Code/Mantid/Framework/API/src/ExperimentInfo.cpp @@ -114,8 +114,11 @@ namespace API << inst->getValidFromDate().toFormattedString("%Y-%b-%d") << " to " << inst->getValidToDate().toFormattedString("%Y-%b-%d") << ")"; out << "\n"; - out << "Instrument from: " << inst->getFilename(); - out << "\n"; + if (!inst->getFilename().empty()) + { + out << "Instrument from: " << inst->getFilename(); + out << "\n"; + } //parameter files loaded auto paramFileVector = this->instrumentParameters().getParameterFilenames();