| 1506 | } |
| 1507 | |
| 1508 | void |
| 1509 | LayoutViewBase::set_dither_pattern (const lay::DitherPattern &pattern) |
| 1510 | { |
| 1511 | if (mp_canvas->dither_pattern () != pattern) { |
| 1512 | |
| 1513 | if (transacting ()) { |
| 1514 | manager ()->queue (this, new OpSetDitherPattern (mp_canvas->dither_pattern (), pattern)); |
| 1515 | } else if (manager () && ! replaying ()) { |
| 1516 | manager ()->clear (); |
| 1517 | } |
| 1518 | mp_canvas->set_dither_pattern (pattern); |
| 1519 | |
| 1520 | for (unsigned int i = 0; i < layer_lists (); ++i) { |
| 1521 | m_layer_properties_lists [i]->set_dither_pattern (pattern); |
| 1522 | } |
| 1523 | |
| 1524 | layer_list_changed_event (1); |
| 1525 | |
| 1526 | } |
| 1527 | } |
| 1528 | |
| 1529 | const LayerPropertiesList & |
| 1530 | LayoutViewBase::get_properties (unsigned int index) const |
no test coverage detected