src/addObjectDialog.cc

changeset 622
622c49e60348
parent 606
3dd6f343ec06
equal deleted inserted replaced
621:928365840d0d 622:622c49e60348
197 // Apply coordinates 197 // Apply coordinates
198 if (obj) 198 if (obj)
199 { 199 {
200 for (int i = 0; i < coordCount / 3; ++i) 200 for (int i = 0; i < coordCount / 3; ++i)
201 for (int j = 0; j < 3; ++j) 201 for (int j = 0; j < 3; ++j)
202 dsb_coords[ (i * 3) + j]->setValue (obj->getVertex (i).coord (j)); 202 dsb_coords[ (i * 3) + j]->setValue (obj->getVertex (i).getCoordinate (j));
203 } 203 }
204 204
205 break; 205 break;
206 206
207 case LDObject::EComment: 207 case LDObject::EComment:
237 dsb_coords[ax]->setValue (mo->getPosition()[ax]); 237 dsb_coords[ax]->setValue (mo->getPosition()[ax]);
238 238
239 defaultMatrix = mo->getTransform(); 239 defaultMatrix = mo->getTransform();
240 } 240 }
241 241
242 le_matrix->setText (defaultMatrix.stringRep()); 242 le_matrix->setText (defaultMatrix.toString());
243 layout->addWidget (lb_matrix, 4, 1); 243 layout->addWidget (lb_matrix, 4, 1);
244 layout->addWidget (le_matrix, 4, 2, 1, 3); 244 layout->addWidget (le_matrix, 4, 2, 1, 3);
245 } 245 }
246 246
247 if (defaults->isColored()) 247 if (defaults->isColored())

mercurial