308 if (dlg.exec() == QDialog::Rejected) |
308 if (dlg.exec() == QDialog::Rejected) |
309 return; |
309 return; |
310 |
310 |
311 if (type == OBJ_SubfileReference) |
311 if (type == OBJ_SubfileReference) |
312 { |
312 { |
313 QStringList matrixstrvals = dlg.le_matrix->text().split (" ", QString::SkipEmptyParts); |
313 QStringList stringValues = dlg.le_matrix->text().split (" ", QString::SkipEmptyParts); |
314 |
314 |
315 if (countof(matrixstrvals) == 9) |
315 if (countof(stringValues) == 9) |
316 { |
316 { |
317 double matrixvals[9]; |
|
318 int i = 0; |
317 int i = 0; |
319 |
318 |
320 for (QString val : matrixstrvals) |
319 for (QString stringValue : stringValues) |
321 matrixvals[i++] = val.toFloat(); |
320 transform.value(i++) = stringValue.toFloat(); |
322 |
|
323 transform = Matrix (matrixvals); |
|
324 } |
321 } |
325 } |
322 } |
326 |
323 |
327 switch (type) |
324 switch (type) |
328 { |
325 { |