From 05dc7bdbb64193872319c7546cae1387346323c0 Mon Sep 17 00:00:00 2001 From: Michael Wedel Date: Sat, 21 Mar 2015 16:33:35 +0100 Subject: [PATCH] Refs #11417. Fixing case for matrices with more than 3 rows --- Code/Mantid/Framework/Kernel/src/Matrix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/Mantid/Framework/Kernel/src/Matrix.cpp b/Code/Mantid/Framework/Kernel/src/Matrix.cpp index e4611db0f6f4..425b07ab4f3d 100644 --- a/Code/Mantid/Framework/Kernel/src/Matrix.cpp +++ b/Code/Mantid/Framework/Kernel/src/Matrix.cpp @@ -351,7 +351,7 @@ V3D Matrix::operator*(const V3D &Vx) const @return Matrix(This * A) */ { - if (ny != 3) + if (ny != 3 || nx > 3) throw Kernel::Exception::MisMatch(ny, 3, "Matrix::operator*(V3D)"); V3D v;