src/addObjectDialog.cpp

changeset 516
d3373bc7ca3b
parent 498
791c831c8020
child 524
52d5884b753c
equal deleted inserted replaced
515:a0ad72800b96 516:d3373bc7ca3b
318 318
319 if (dlg.exec() == false) 319 if (dlg.exec() == false)
320 return; 320 return;
321 321
322 if (type == LDObject::Subfile) 322 if (type == LDObject::Subfile)
323 { QStringList matrixstrvals = dlg.le_matrix->text().split (" "); 323 { QStringList matrixstrvals = dlg.le_matrix->text().split (" ", QString::SkipEmptyParts);
324 324
325 if (matrixstrvals.size() == 9) 325 if (matrixstrvals.size() == 9)
326 { double matrixvals[9]; 326 { double matrixvals[9];
327 int i = 0; 327 int i = 0;
328 328
329 for (str val : matrixstrvals) 329 for (str val : matrixstrvals)
330 matrixvals[i++] = val.toFloat(); 330 matrixvals[i++] = val.toFloat();
331 331
332 transform = matrix (matrixvals); 332 transform = matrix (matrixvals);
333 } 333 }
334 } 334 }

mercurial