| 38 | { |
| 39 | |
| 40 | static void remove_stipple (lay::LayoutViewBase *view, unsigned int index) |
| 41 | { |
| 42 | lay::DitherPattern pattern (view->dither_pattern ()); |
| 43 | |
| 44 | if (index >= (unsigned int) std::distance (pattern.begin (), pattern.begin_custom ()) && |
| 45 | index < (unsigned int) std::distance (pattern.begin (), pattern.end ())) { |
| 46 | lay::DitherPatternInfo p; |
| 47 | pattern.replace_pattern (index, p); |
| 48 | pattern.renumber (); |
| 49 | view->set_dither_pattern (pattern); |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | static void clear_stipples (lay::LayoutViewBase *view) |
| 54 | { |
nothing calls this directly
no test coverage detected