| 617 | } |
| 618 | |
| 619 | void DrawingProgram::switch_to_tool(DrawingProgramToolType newToolType, bool force) { |
| 620 | if(newToolType != drawTool->get_type() || force) { |
| 621 | drawTool->switch_tool(newToolType); |
| 622 | drawTool = DrawingProgramToolBase::allocate_tool_type(*this, newToolType); |
| 623 | clear_right_click_popup(); |
| 624 | world.main.g.gui.set_to_layout(); |
| 625 | } |
| 626 | } |
| 627 | |
| 628 | bool DrawingProgram::prevent_undo_or_redo() { |
| 629 | return drawTool->prevent_undo_or_redo(); |
no test coverage detected