From 74052cbdfd09dc6ba397851c53fd991a3692378d Mon Sep 17 00:00:00 2001 From: Dan Nixon Date: Tue, 2 Jun 2015 11:49:33 +0100 Subject: [PATCH] Fix the issue Refs #11882 This only seems to have been an issue with non spectra axis --- Code/Mantid/Framework/API/src/WorkspaceFactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/Mantid/Framework/API/src/WorkspaceFactory.cpp b/Code/Mantid/Framework/API/src/WorkspaceFactory.cpp index 44935d5637bc..d19d43cf5ed3 100644 --- a/Code/Mantid/Framework/API/src/WorkspaceFactory.cpp +++ b/Code/Mantid/Framework/API/src/WorkspaceFactory.cpp @@ -132,7 +132,7 @@ void WorkspaceFactoryImpl::initializeFromParent( const size_t newAxisLength = child->getAxis(i)->length(); const size_t oldAxisLength = parent->getAxis(i)->length(); - if (!differentSize || newAxisLength == oldAxisLength) { + if (!differentSize && newAxisLength == oldAxisLength) { // Need to delete the existing axis created in init above delete child->m_axes[i]; // Now set to a copy of the parent workspace's axis