| 723 | } |
| 724 | |
| 725 | void DrawingProgramSelection::delete_all() { |
| 726 | check_add_stroke_color_change_undo(); |
| 727 | |
| 728 | if(is_something_selected()) { |
| 729 | auto selectedSetTemp = selectedSet; |
| 730 | reset_all(); // Clear set before erasing, since calling erase_component_set will run a check to see if each object is selected and erase them one by one, which is slower |
| 731 | drawP.layerMan.erase_component_container(selectedSetTemp); |
| 732 | } |
| 733 | } |
| 734 | |
| 735 | void DrawingProgramSelection::erase_component(CanvasComponentContainer::ObjInfo* objToCheck) { |
| 736 | check_add_stroke_color_change_undo(); |
no test coverage detected