277 } |
277 } |
278 |
278 |
279 void BasicToolset::edit() |
279 void BasicToolset::edit() |
280 { |
280 { |
281 if (countof(selectedObjects()) == 1) |
281 if (countof(selectedObjects()) == 1) |
282 { |
282 ::editObject(this->m_window, *selectedObjects().begin()); |
283 LDObject* object = *selectedObjects().begin(); |
|
284 ::editObject(this->m_window, object); |
|
285 } |
|
286 } |
283 } |
287 |
284 |
288 void BasicToolset::modeSelect() |
285 void BasicToolset::modeSelect() |
289 { |
286 { |
290 m_window->renderer()->setEditMode (EditModeType::Select); |
287 m_window->renderer()->setEditMode (EditModeType::Select); |