diff --git a/Code/Mantid/Framework/MDAlgorithms/src/ConvertToQNDany.cpp b/Code/Mantid/Framework/MDAlgorithms/src/ConvertToQNDany.cpp index a97d72ed3c49c3abb2ed19f1011caf65d128b281..307296608ae5342a227506d78245adcac0da99ae 100644 --- a/Code/Mantid/Framework/MDAlgorithms/src/ConvertToQNDany.cpp +++ b/Code/Mantid/Framework/MDAlgorithms/src/ConvertToQNDany.cpp @@ -221,6 +221,8 @@ void ConvertToQNDany::exec(){ std::vector<std::string> dim_selected; known_algorithms algo_id = identify_requested_alg(dim_names_availible, Q_dim_requested,other_dim,n_activated_dimensions); + // call selected algorithm. + alg_selector[algo_id](this); return; } diff --git a/Code/Mantid/Framework/MDAlgorithms/test/ConvertToQNDanyTest.h b/Code/Mantid/Framework/MDAlgorithms/test/ConvertToQNDanyTest.h index ea3c790249e93fb8f81f0fdbca39868e07c28008..beb48e79d3967aa8a004bbb1e7632591f31bb9b8 100644 --- a/Code/Mantid/Framework/MDAlgorithms/test/ConvertToQNDanyTest.h +++ b/Code/Mantid/Framework/MDAlgorithms/test/ConvertToQNDanyTest.h @@ -212,7 +212,8 @@ void testFuncSelector() void testExecSelection() { - TS_ASSERT_THROWS_NOTHING(pAlg->execute()); + pAlg->setRethrows(true); + TS_ASSERT_THROWS(pAlg->execute(),Kernel::Exception::NotImplementedError); }