| 738 | |
| 739 | |
| 740 | void Object::includeControlPointsRect(QRectF& rect) const |
| 741 | { |
| 742 | if (type == Object::Path) |
| 743 | { |
| 744 | const PathObject* path = asPath(); |
| 745 | for (auto const& coord : path->coords) |
| 746 | rectInclude(rect, QPointF(coord)); |
| 747 | } |
| 748 | else if (type == Object::Text) |
| 749 | { |
| 750 | const TextObject* text = asText(); |
| 751 | std::vector<QPointF> text_handles(text->controlPoints()); |
| 752 | for (auto& text_handle : text_handles) |
| 753 | rectInclude(rect, text_handle); |
| 754 | } |
| 755 | } |
| 756 | |
| 757 | |
| 758 |
no test coverage detected