| 3819 | } |
| 3820 | |
| 3821 | void |
| 3822 | LayoutViewBase::store_state () |
| 3823 | { |
| 3824 | // erase all states after the current position |
| 3825 | if (m_display_state_ptr + 1 < m_display_states.size ()) { |
| 3826 | m_display_states.erase (m_display_states.begin () + m_display_state_ptr + 1, m_display_states.end ()); |
| 3827 | } |
| 3828 | |
| 3829 | // save the state |
| 3830 | DisplayState state (box (), get_min_hier_levels (), get_max_hier_levels (), m_cellviews); |
| 3831 | m_display_states.push_back (state); |
| 3832 | |
| 3833 | m_display_state_ptr = (unsigned int) (m_display_states.size () - 1); |
| 3834 | } |
| 3835 | |
| 3836 | db::DBox |
| 3837 | LayoutViewBase::box () const |
no test coverage detected