From 3dee66eb357b10c589b03a9cef2b1036872b4277 Mon Sep 17 00:00:00 2001 From: Michael Whitty <michael.whitty@stfc.ac.uk> Date: Tue, 11 Jan 2011 12:57:32 +0000 Subject: [PATCH] refs #2192 - fix for CloneWorkspace test failure? (can't seem to build this test locally, but doing the same steps manually it passes) --- 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 3692a9cb8c8..951bdaa3df9 100644 --- a/Code/Mantid/Framework/API/src/WorkspaceFactory.cpp +++ b/Code/Mantid/Framework/API/src/WorkspaceFactory.cpp @@ -110,7 +110,7 @@ void WorkspaceFactoryImpl::initializeFromParent(const MatrixWorkspace_const_sptr const int newAxisLength = child->getAxis(i)->length(); const int oldAxisLength = parent->getAxis(i)->length(); - if ( newAxisLength == oldAxisLength ) + if ( !differentSize || newAxisLength == oldAxisLength ) { // Need to delete the existing axis created in init above delete child->m_axes[i]; -- GitLab