Skip to content

Commit

Permalink
Refs #11417. Fixing case for matrices with more than 3 rows
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Wedel committed Mar 21, 2015
1 parent 34c649b commit 05dc7bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/Kernel/src/Matrix.cpp
Expand Up @@ -351,7 +351,7 @@ V3D Matrix<T>::operator*(const V3D &Vx) const
@return Matrix(This * A)
*/
{
if (ny != 3)
if (ny != 3 || nx > 3)
throw Kernel::Exception::MisMatch<size_t>(ny, 3, "Matrix::operator*(V3D)");

V3D v;
Expand Down

0 comments on commit 05dc7bd

Please sign in to comment.