diff -r 283de3bd8b0e -r 220cde0fa2d9 src/addObjectDialog.cpp --- a/src/addObjectDialog.cpp Sat Jan 28 17:14:05 2017 +0200 +++ b/src/addObjectDialog.cpp Sat Jan 28 17:20:16 2017 +0200 @@ -310,17 +310,14 @@ if (type == OBJ_SubfileReference) { - QStringList matrixstrvals = dlg.le_matrix->text().split (" ", QString::SkipEmptyParts); + QStringList stringValues = dlg.le_matrix->text().split (" ", QString::SkipEmptyParts); - if (countof(matrixstrvals) == 9) + if (countof(stringValues) == 9) { - double matrixvals[9]; int i = 0; - for (QString val : matrixstrvals) - matrixvals[i++] = val.toFloat(); - - transform = Matrix (matrixvals); + for (QString stringValue : stringValues) + transform.value(i++) = stringValue.toFloat(); } }