Skip to content

Commit

Permalink
Add some .rivs with feathering to golden tests
Browse files Browse the repository at this point in the history
Diffs=
0d03957f83 Add some .rivs with feathering to golden tests (#9007)

Co-authored-by: Chris Dalton <[email protected]>
  • Loading branch information
csmartdalton and csmartdalton committed Feb 10, 2025
1 parent 55b1fc9 commit 9d5c56f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
fa0e111996800b35420c873cc334621f3bb366e1
0d03957f838861065c01db2c58cd9e7adcd5976e
4 changes: 2 additions & 2 deletions src/math/rectangles_to_contour.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ std::vector<std::vector<Vec2D>> RectanglesToContour::computeContours()
while (i < sortY.size())
{
float currY = sortY[i].y;
while (sortY[i].y == currY && i < sortY.size())
while (i < sortY.size() && sortY[i].y == currY)
{
edgesH[sortY[i]] = sortY[i + 1];
edgesH[sortY[i + 1]] = sortY[i];
Expand All @@ -253,7 +253,7 @@ std::vector<std::vector<Vec2D>> RectanglesToContour::computeContours()
while (i < sortX.size())
{
float currX = sortX[i].x;
while (sortX[i].x == currX && i < sortX.size())
while (i < sortX.size() && sortX[i].x == currX)
{
edgesV[sortX[i]] = sortX[i + 1];
edgesV[sortX[i + 1]] = sortX[i];
Expand Down

0 comments on commit 9d5c56f

Please sign in to comment.