Inserts a new box before the given index. Recomputes the bounding box.
| 149 | // Inserts a new box before the given index. |
| 150 | // Recomputes the bounding box. |
| 151 | void BoxWord::InsertBox(int index, const TBOX& box) { |
| 152 | if (index < length_) |
| 153 | boxes_.insert(box, index); |
| 154 | else |
| 155 | boxes_.push_back(box); |
| 156 | length_ = boxes_.size(); |
| 157 | ComputeBoundingBox(); |
| 158 | } |
| 159 | |
| 160 | // Changes the box at the given index to the new box. |
| 161 | // Recomputes the bounding box. |
no test coverage detected