Skip to content

Commit

Permalink
util/rectpack: fix wrong subsplit direction in split_vertical
Browse files Browse the repository at this point in the history
Doesn't seem to ever actually matter in practice, but theoretically it
was wrong.
  • Loading branch information
Akaricchi committed Oct 20, 2023
1 parent 4cb63ee commit 968edfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/rectpack.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ static RectPackSection *split_vertical(RectPack *rp, RectPackSection *s, double
);

if(rect_height(sub->rect) != height) {
sub = split_vertical(rp, sub, width, height);
sub = split_horizontal(rp, sub, width, height);
}

return sub;
Expand Down

0 comments on commit 968edfb

Please sign in to comment.