From 3459ea94f491fd971522e5debe34e723a5cf9759 Mon Sep 17 00:00:00 2001
From: Peter Peterson <petersonpf@ornl.gov>
Date: Wed, 9 Oct 2013 09:08:47 -0400
Subject: [PATCH] Re #8074. Don't edit instrument without grouping.

---
 .../Framework/WorkflowAlgorithms/src/AlignAndFocusPowder.cpp    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Code/Mantid/Framework/WorkflowAlgorithms/src/AlignAndFocusPowder.cpp b/Code/Mantid/Framework/WorkflowAlgorithms/src/AlignAndFocusPowder.cpp
index c409e093273..ffd7fc08048 100644
--- a/Code/Mantid/Framework/WorkflowAlgorithms/src/AlignAndFocusPowder.cpp
+++ b/Code/Mantid/Framework/WorkflowAlgorithms/src/AlignAndFocusPowder.cpp
@@ -576,7 +576,7 @@ namespace WorkflowAlgorithms
     m_progress->report();
 
     // edit the instrument geometry
-    if (m_l1 > 0 || !tths.empty() || !l2s.empty() || !phis.empty())
+    if (m_groupWS && (m_l1 > 0 || !tths.empty() || !l2s.empty() || !phis.empty()))
     {
       size_t numreg = m_outputW->getNumberHistograms();
 
-- 
GitLab