From f40f1a68f8c184416bf4ad064c7a166b5b60953b Mon Sep 17 00:00:00 2001
From: Harry Jeffery <henry.jeffery@stfc.ac.uk>
Date: Wed, 11 Mar 2015 09:20:14 +0000
Subject: [PATCH] Refs #11020 Correct coplanarity check

---
 Code/Mantid/Framework/API/src/Projection.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Code/Mantid/Framework/API/src/Projection.cpp b/Code/Mantid/Framework/API/src/Projection.cpp
index 9f569d69226..2d1a63d19a8 100644
--- a/Code/Mantid/Framework/API/src/Projection.cpp
+++ b/Code/Mantid/Framework/API/src/Projection.cpp
@@ -26,8 +26,8 @@ Projection::Projection(const V3D &u, const V3D &v) {
 }
 
 Projection::Projection(const V3D &u, const V3D &v, const V3D &w) {
-  if (w.scalar_prod(u.cross_prod(v)) <= 0.00001)
-    throw std::runtime_error("u, v, and w must be coplanar!");
+  if (fabs(w.scalar_prod(u.cross_prod(v))) <= 0.00001)
+    throw std::runtime_error("u, v, and w must not be coplanar!");
 
   m_dimensions[0] = u;
   m_dimensions[1] = v;
-- 
GitLab