void Run() { HeeksObj* new_object = SplitArcsIntoLittleLines(sketch_for_tools); wxGetApp().Remove(sketch_for_tools); sketch_for_tools = NULL; wxGetApp().Add(new_object, NULL); }
void Run() { HeeksObj* new_object = SplitArcsIntoLittleLines(sketch_for_tools); wxGetApp().DeleteUndoably(sketch_for_tools); sketch_for_tools = NULL; wxGetApp().AddUndoably(new_object, NULL, NULL); }