From 23b9dd22ff17d9d2c60fa6da9a680518a6b62833 Mon Sep 17 00:00:00 2001
From: Michael Wedel <michael.wedel@psi.ch>
Date: Thu, 26 Mar 2015 21:19:07 +0100
Subject: [PATCH] Refs #11174. Added failing test case and fix problem.

---
 .../CurveFitting/test/FunctionParameterDecoratorFitTest.h       | 2 +-
 .../Framework/TestHelpers/src/WorkspaceCreationHelper.cpp       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Code/Mantid/Framework/CurveFitting/test/FunctionParameterDecoratorFitTest.h b/Code/Mantid/Framework/CurveFitting/test/FunctionParameterDecoratorFitTest.h
index 47cc259f355..9539e6aebaa 100644
--- a/Code/Mantid/Framework/CurveFitting/test/FunctionParameterDecoratorFitTest.h
+++ b/Code/Mantid/Framework/CurveFitting/test/FunctionParameterDecoratorFitTest.h
@@ -70,7 +70,7 @@ public:
 
   void testFit() {
     Workspace2D_sptr ws =
-        WorkspaceCreationHelper::Create1DWorkspaceConstant(20, 1.5, 1.5);
+        WorkspaceCreationHelper::Create1DWorkspaceConstant(20, 1.5, 0.5);
 
     FunctionParameterDecorator_sptr fn =
         boost::make_shared<SimpleFunctionParameterDecorator>();
diff --git a/Code/Mantid/Framework/TestHelpers/src/WorkspaceCreationHelper.cpp b/Code/Mantid/Framework/TestHelpers/src/WorkspaceCreationHelper.cpp
index 11df5295a6c..addcd3b9212 100644
--- a/Code/Mantid/Framework/TestHelpers/src/WorkspaceCreationHelper.cpp
+++ b/Code/Mantid/Framework/TestHelpers/src/WorkspaceCreationHelper.cpp
@@ -84,7 +84,7 @@ Workspace2D_sptr Create1DWorkspaceConstant(int size, double value,
   y1.access().resize(size);
   std::fill(y1.access().begin(), y1.access().end(), value);
   e1.access().resize(size);
-  std::fill(y1.access().begin(), y1.access().end(), error);
+  std::fill(e1.access().begin(), e1.access().end(), error);
   Workspace2D_sptr retVal(new Workspace2D);
   retVal->initialize(1, size, size);
   retVal->setX(0, x1);
-- 
GitLab