diff --git a/src/Base/MatrixPyImp.cpp b/src/Base/MatrixPyImp.cpp index 4f9dc2a3eb..a1fc338fa1 100644 --- a/src/Base/MatrixPyImp.cpp +++ b/src/Base/MatrixPyImp.cpp @@ -185,7 +185,7 @@ PyObject* MatrixPy::number_multiply_handler(PyObject *self, PyObject *other) } if (PyNumber_Check(other)) { - double v = PyFloat_AsDouble(self); + double v = PyFloat_AsDouble(other); a.scale(v,v,v); return new MatrixPy(a); }