Skip to content

Commit

Permalink
Assign intersection type to a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
YakoYakoYokuYoku committed Dec 11, 2021
1 parent 827d6aa commit 4017d92
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Engine/RotoContext.cpp
Expand Up @@ -4477,10 +4477,11 @@ RotoContextPrivate::bezulate(double time,
for (; cur != polygon.end(); ++cur, ++last_pt) {
QLineF polygonSegment( QPointF(last_pt->x, last_pt->y), QPointF(cur->x, cur->y) );
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
if (line.intersects(polygonSegment, &intersectionPoint) == QLineF::BoundedIntersection) {
QLineF::IntersectionType intersectType = line.intersects(polygonSegment, &intersectionPoint);
#else
if (line.intersect(polygonSegment, &intersectionPoint) == QLineF::BoundedIntersection) {
QLineF::IntersectType intersectType = line.intersect(polygonSegment, &intersectionPoint);
#endif
if (intersectType == QLineF::BoundedIntersection) {
intersections.insert(intersectionPoint);
}
if (intersections.size() > 2) {
Expand Down

0 comments on commit 4017d92

Please sign in to comment.