| 163 | } |
| 164 | |
| 165 | void GroupExtension::removeObjectsFromDocument() |
| 166 | { |
| 167 | while (Group.getSize() > 0) { |
| 168 | // Remove the objects step by step because it can happen |
| 169 | // that an object is part of several groups and thus a |
| 170 | // double destruction could be possible |
| 171 | const std::vector<DocumentObject*>& grp = Group.getValues(); |
| 172 | removeObjectFromDocument(grp.front()); |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | void GroupExtension::removeObjectFromDocument(DocumentObject* obj) |
| 177 | { |
no test coverage detected