diff -r a0ad72800b96 -r d3373bc7ca3b src/addObjectDialog.cpp --- a/src/addObjectDialog.cpp Fri Oct 18 22:30:08 2013 +0300 +++ b/src/addObjectDialog.cpp Fri Oct 18 23:49:55 2013 +0300 @@ -320,13 +320,13 @@ return; if (type == LDObject::Subfile) - { QStringList matrixstrvals = dlg.le_matrix->text().split (" "); + { QStringList matrixstrvals = dlg.le_matrix->text().split (" ", QString::SkipEmptyParts); if (matrixstrvals.size() == 9) { double matrixvals[9]; int i = 0; - for (str val : matrixstrvals) + for (str val : matrixstrvals) matrixvals[i++] = val.toFloat(); transform = matrix (matrixvals);