From 31b7a8596c846778ddee1c1c687a7d972be0a969 Mon Sep 17 00:00:00 2001
From: Matthew Bowles <matthew.bowles@stfc.ac.uk>
Date: Mon, 30 Apr 2018 09:51:39 +0100
Subject: [PATCH] change setPropertyValue to setProperty re #22347

---
 Framework/MDAlgorithms/src/ConvertToMD.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Framework/MDAlgorithms/src/ConvertToMD.cpp b/Framework/MDAlgorithms/src/ConvertToMD.cpp
index 90adc440b12..84a95e7317c 100644
--- a/Framework/MDAlgorithms/src/ConvertToMD.cpp
+++ b/Framework/MDAlgorithms/src/ConvertToMD.cpp
@@ -667,10 +667,10 @@ void ConvertToMD::findMinMax(
     throw(std::runtime_error(
         "Can not create child ChildAlgorithm to found min/max values"));
 
-  childAlg->setPropertyValue("InputWorkspace", inWS->getName());
-  childAlg->setPropertyValue("QDimensions", QMode);
-  childAlg->setPropertyValue("dEAnalysisMode", dEMode);
-  childAlg->setPropertyValue("Q3DFrames", QFrame);
+  childAlg->setProperty("InputWorkspace", inWS);
+  childAlg->setProperty("QDimensions", QMode);
+  childAlg->setProperty("dEAnalysisMode", dEMode);
+  childAlg->setProperty("Q3DFrames", QFrame);
   childAlg->setProperty("OtherDimensions", otherDim);
   childAlg->setProperty("QConversionScales", ConvertTo);
   childAlg->setProperty("PreprocDetectorsWS",
-- 
GitLab