| 597 | // ---------------------------------------------------------------------------------------- |
| 598 | |
| 599 | void metadata_editor:: |
| 600 | save_undo_state ( |
| 601 | const box_history_entry& boxes |
| 602 | ) |
| 603 | { |
| 604 | undo_history.push_back(boxes); |
| 605 | if (undo_history.size() > MAX_UNDO_HISTORY) |
| 606 | undo_history.erase(undo_history.begin()); |
| 607 | redo_history.clear(); |
| 608 | } |
| 609 | |
| 610 | // ---------------------------------------------------------------------------------------- |
| 611 |