TODO RLZ: add undo support in this method*/
| 1075 | |
| 1076 | /*TODO RLZ: add undo support in this method*/ |
| 1077 | void Doc_plugin_interface::removeEntity(Plug_Entity *ent){ |
| 1078 | RS_Entity *e = (reinterpret_cast<Plugin_Entity*>(ent))->getEnt(); |
| 1079 | if (doc && e) { |
| 1080 | LC_UndoSection undo(doc); |
| 1081 | e->setSelected(false); |
| 1082 | e->changeUndoState(); |
| 1083 | undo.addUndoable(e); |
| 1084 | |
| 1085 | gView->redraw(RS2::RedrawDrawing); |
| 1086 | } |
| 1087 | } |
| 1088 | |
| 1089 | void Doc_plugin_interface::updateEntity(RS_Entity *org, RS_Entity *newe){ |
| 1090 | if (doc) { |
no test coverage detected