src/addObjectDialog.cpp

changeset 516
d3373bc7ca3b
parent 498
791c831c8020
child 524
52d5884b753c
--- 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);

mercurial