Skip to content

Commit

Permalink
refs #6449 correct EI copying
Browse files Browse the repository at this point in the history
  • Loading branch information
abuts committed Apr 8, 2013
1 parent ec5b7b8 commit 88a07e8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Code/Mantid/Framework/MDAlgorithms/src/MergeMD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,12 @@ namespace MDAlgorithms

for (uint16_t i=0; i < nExperiments; i++)
{
API::ExperimentInfo_sptr ei = API::ExperimentInfo_sptr(m_workspaces[i]->getExperimentInfo(i)->cloneExperimentInfo());
out->addExperimentInfo(ei);
uint16_t nWSexperiments = m_workspaces[i]->getNumExperimentInfo();
for(uint16_t j=0;j<nWSexperiments;j++)
{
API::ExperimentInfo_sptr ei = API::ExperimentInfo_sptr(m_workspaces[i]->getExperimentInfo(j)->cloneExperimentInfo());
out->addExperimentInfo(ei);
}
}


Expand Down

0 comments on commit 88a07e8

Please sign in to comment.