| 157 | } |
| 158 | |
| 159 | static void cv_hide_cell (lay::CellViewRef *cv, const db::Cell *cell) |
| 160 | { |
| 161 | if (cv->is_valid () && cell) { |
| 162 | if (cell->layout () != &(*cv)->layout ()) { |
| 163 | throw tl::Exception (tl::to_string (tr ("The cell is not a cell of the view's layout"))); |
| 164 | } |
| 165 | cv->view ()->hide_cell (cell->cell_index (), cv->index ()); |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | static void cv_show_cell (lay::CellViewRef *cv, const db::Cell *cell) |
| 170 | { |