--- a/src/addObjectDialog.cpp Thu Jan 04 19:52:24 2018 +0200 +++ b/src/addObjectDialog.cpp Thu Jan 04 20:21:36 2018 +0200 @@ -188,7 +188,7 @@ QLabel* lb_matrix = new QLabel("Matrix:"); le_matrix = new QLineEdit; // le_matrix->setValidator(new QDoubleValidator); - Matrix defaultMatrix = IdentityMatrix; + Matrix defaultMatrix; if (mo) { @@ -294,7 +294,7 @@ return; // Nothing to edit with empties const bool newObject = (obj == nullptr); - Matrix transform = IdentityMatrix; + Matrix transform; AddObjectDialog dlg(type, obj); if (obj and obj->type() != type) @@ -309,13 +309,10 @@ if (matrixstrvals.size() == 9) { - double matrixvals[9]; int i = 0; for (QString val : matrixstrvals) - matrixvals[i++] = val.toFloat(); - - transform = Matrix(matrixvals); + transform[i++] = val.toFloat(); } }