| 1639 | } |
| 1640 | |
| 1641 | lay::LayerPropertiesConstIterator |
| 1642 | LayoutViewBase::find_layer (unsigned int cv_index, const db::LayerProperties &lp) const |
| 1643 | { |
| 1644 | lay::LayerPropertiesConstIterator l = begin_layers (); |
| 1645 | while (! l.at_end ()) { |
| 1646 | if (l->source (true).cv_index () == int (cv_index) && l->source (true).layer_props ().log_equal (lp)) { |
| 1647 | return l; |
| 1648 | } |
| 1649 | ++l; |
| 1650 | } |
| 1651 | |
| 1652 | return lay::LayerPropertiesConstIterator (); |
| 1653 | } |
| 1654 | |
| 1655 | bool |
| 1656 | LayoutViewBase::set_current_layer (unsigned int cv_index, const db::LayerProperties &lp) |