Swaps the outlines of *this and next if needed to keep the centers in increasing x.
| 513 | // Swaps the outlines of *this and next if needed to keep the centers in |
| 514 | // increasing x. |
| 515 | void TBLOB::CorrectBlobOrder(TBLOB* next) { |
| 516 | TBOX box = bounding_box(); |
| 517 | TBOX next_box = next->bounding_box(); |
| 518 | if (box.x_middle() > next_box.x_middle()) { |
| 519 | Swap(&outlines, &next->outlines); |
| 520 | } |
| 521 | } |
| 522 | |
| 523 | #ifndef GRAPHICS_DISABLED |
| 524 | void TBLOB::plot(ScrollView* window, ScrollView::Color color, |
no test coverage detected