From b3bfbc74336ee2f54075dac9329d670c3462fc51 Mon Sep 17 00:00:00 2001 From: Martyn Gigg Date: Wed, 2 Jul 2014 14:32:31 +0100 Subject: [PATCH] Fix addPositionCoordinate for copied objects. Refs #9802 --- .../Framework/Geometry/src/Instrument/ParameterMap.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Code/Mantid/Framework/Geometry/src/Instrument/ParameterMap.cpp b/Code/Mantid/Framework/Geometry/src/Instrument/ParameterMap.cpp index 417ed576d3f8..67c7420fa827 100644 --- a/Code/Mantid/Framework/Geometry/src/Instrument/ParameterMap.cpp +++ b/Code/Mantid/Framework/Geometry/src/Instrument/ParameterMap.cpp @@ -307,10 +307,7 @@ namespace Mantid //clear the position cache clearPositionSensitiveCaches(); // finally add or update "pos" parameter - if (param) - param->set(position); - else - addV3D(comp, pos(), position); + addV3D(comp, pos(), position); } /** Create or adjust "rot" parameter for a component