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 } |