Deletes the box with the given index, and shuffles up the rest. Recomputes the bounding box.
| 167 | // Deletes the box with the given index, and shuffles up the rest. |
| 168 | // Recomputes the bounding box. |
| 169 | void BoxWord::DeleteBox(int index) { |
| 170 | ASSERT_HOST(0 <= index && index < length_); |
| 171 | boxes_.remove(index); |
| 172 | --length_; |
| 173 | ComputeBoundingBox(); |
| 174 | } |
| 175 | |
| 176 | // Deletes all the boxes stored in BoxWord. |
| 177 | void BoxWord::DeleteAllBoxes() { |