fix conversion factors for psi and ksi

This commit is contained in:
wmayer
2018-03-31 15:43:16 +02:00
parent e46e576a11
commit 1cbc20b0b1
3 changed files with 17 additions and 20 deletions

View File

@@ -182,9 +182,9 @@ PyObject* QuantityPy::getValueAs(PyObject *args)
PyErr_Clear();
char* string;
if (PyArg_ParseTuple(args,"et", "utf-8", &string)) {
QString qstr = QString::fromUtf8(string);
PyMem_Free(string);
quant = Quantity::parse(qstr);
QString qstr = QString::fromUtf8(string);
PyMem_Free(string);
quant = Quantity::parse(qstr);
}
}