| 173 | } |
| 174 | |
| 175 | unsigned int |
| 176 | LayoutLayers::error_layer () const |
| 177 | { |
| 178 | if (m_error_layer < 0) { |
| 179 | // create the error layer (since that layer is cached we can do |
| 180 | // this in a "const" fashion. |
| 181 | db::LayoutLayers *self = const_cast<db::LayoutLayers *> (this); |
| 182 | self->m_error_layer = (int) self->insert_special_layer (db::LayerProperties ("ERROR")); |
| 183 | } |
| 184 | |
| 185 | return (unsigned int) m_error_layer; |
| 186 | } |
| 187 | |
| 188 | unsigned int |
| 189 | LayoutLayers::waste_layer () const |