Skip to content

Commit

Permalink
Refs #5678. Fixing mask writing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Reuter committed Sep 13, 2012
1 parent 17d4d96 commit c3842f9
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Code/Mantid/Framework/WorkflowAlgorithms/src/DgsDiagnose.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,15 +343,13 @@ namespace Mantid
if (reductionManager->existsProperty("OutputMaskFile"))
{
std::string maskFilename = reductionManager->getPropertyValue("OutputMaskFile");
if (maskFilename.empty())
if (!maskFilename.empty())
{
maskFilename = maskName + ".xml";
IAlgorithm_sptr saveNxs = this->createSubAlgorithm("SaveMask");
saveNxs->setProperty("InputWorkspace", maskWS);
saveNxs->setProperty("OutputFile", maskFilename);
saveNxs->execute();
}

IAlgorithm_sptr saveNxs = this->createSubAlgorithm("SaveMask");
saveNxs->setProperty("InputWorkspace", maskWS);
saveNxs->setProperty("OutputFile", maskFilename);
saveNxs->execute();
}

MaskWorkspace_sptr m = boost::dynamic_pointer_cast<MaskWorkspace>(maskWS);
Expand Down

0 comments on commit c3842f9

Please sign in to comment.