| 127 | } |
| 128 | |
| 129 | void |
| 130 | AnnotationShapes::clear () |
| 131 | { |
| 132 | if (manager () && manager ()->transacting ()) { |
| 133 | manager ()->queue (this, new AnnotationLayerOp (false /*not insert*/, m_layer.begin (), m_layer.end ())); |
| 134 | } |
| 135 | invalidate_state (); // HINT: must come before the change is done! |
| 136 | m_layer.clear (); |
| 137 | } |
| 138 | |
| 139 | const AnnotationShapes::shape_type & |
| 140 | AnnotationShapes::insert (const shape_type &sh) |