304 { |
304 { |
305 LDObject* object = static_cast<LDObject*>(sender()); |
305 LDObject* object = static_cast<LDObject*>(sender()); |
306 addToHistory(new EditHistoryEntry {object->lineNumber(), before, after}); |
306 addToHistory(new EditHistoryEntry {object->lineNumber(), before, after}); |
307 redoVertices(); |
307 redoVertices(); |
308 emit objectModified(object); |
308 emit objectModified(object); |
|
309 int linenumber = object->lineNumber(); |
|
310 emit dataChanged(index(linenumber), index(linenumber)); |
309 } |
311 } |
310 |
312 |
311 LDObject* LDDocument::withdrawAt(int position) |
313 LDObject* LDDocument::withdrawAt(int position) |
312 { |
314 { |
313 LDObject* object = getObject(position); |
315 LDObject* object = getObject(position); |