| 628 | // ---------------------------------------------------------------------------------------- |
| 629 | |
| 630 | void metadata_editor:: |
| 631 | perform_redo() |
| 632 | { |
| 633 | if (!redo_history.empty()) |
| 634 | { |
| 635 | undo_history.push_back(metadata.images[image_pos].boxes); |
| 636 | if (undo_history.size() > MAX_UNDO_HISTORY) |
| 637 | undo_history.erase(undo_history.begin()); |
| 638 | |
| 639 | metadata.images[image_pos].boxes = redo_history.back(); |
| 640 | redo_history.pop_back(); |
| 641 | display.clear_overlay(); |
| 642 | display.add_overlay(get_overlays(metadata.images[image_pos], string_to_color)); |
| 643 | } |
| 644 | } |
| 645 | |
| 646 | // ---------------------------------------------------------------------------------------- |
| 647 |
nothing calls this directly
no test coverage detected