diff --git a/Code/Mantid/Framework/API/src/Projection.cpp b/Code/Mantid/Framework/API/src/Projection.cpp index 9f569d69226df8c485904615b16244c6d976ed09..2d1a63d19a80ded78cc0763a3c1f114c7daa158f 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;