src/addObjectDialog.cpp

changeset 1069
220cde0fa2d9
parent 1065
c8ecddbd99e9
child 1070
292c64cb2a75
equal deleted inserted replaced
1068:283de3bd8b0e 1069:220cde0fa2d9
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 {

mercurial