| 1028 | } |
| 1029 | |
| 1030 | void |
| 1031 | DitherPattern::replace_pattern (unsigned int i, const DitherPatternInfo &p) |
| 1032 | { |
| 1033 | while (i >= count ()) { |
| 1034 | m_pattern.push_back (DitherPatternInfo ()); |
| 1035 | } |
| 1036 | |
| 1037 | if (m_pattern [i] != p) { |
| 1038 | if (manager () && manager ()->transacting ()) { |
| 1039 | manager ()->queue (this, new ReplaceDitherPatternOp (i, m_pattern [i], p)); |
| 1040 | } |
| 1041 | m_pattern [i] = p; |
| 1042 | } |
| 1043 | } |
| 1044 | |
| 1045 | unsigned int |
| 1046 | DitherPattern::add_pattern (const DitherPatternInfo &p) |
no test coverage detected