From f0a61d7abdf0fdefefd9e127173936b6fa1a013d Mon Sep 17 00:00:00 2001
From: Vickie Lynch <lynchve@ornl.gov>
Date: Fri, 1 Apr 2011 13:52:56 +0000
Subject: [PATCH] Refs #2763 Fixed MoveInstrumentComponent for new groups in
 SNAP

---
 .../Framework/DataHandling/src/MoveInstrumentComponent.cpp | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Code/Mantid/Framework/DataHandling/src/MoveInstrumentComponent.cpp b/Code/Mantid/Framework/DataHandling/src/MoveInstrumentComponent.cpp
index bd313f57721..fb7f4442ee8 100644
--- a/Code/Mantid/Framework/DataHandling/src/MoveInstrumentComponent.cpp
+++ b/Code/Mantid/Framework/DataHandling/src/MoveInstrumentComponent.cpp
@@ -109,6 +109,13 @@ void MoveInstrumentComponent::exec()
       rot.inverse();
       rot.rotate(Pos);
   }
+  boost::shared_ptr<const IComponent>grandparent = parent->getParent();
+  if (grandparent)
+  {
+      Quat rot = grandparent->getRelativeRot();
+      rot.inverse();
+      rot.rotate(Pos);
+  }
 
   Geometry::ParameterMap& pmap = WS->instrumentParameters();
   // Add a parameter for the new position
-- 
GitLab