Skip to content

Commit 2a497a1

Browse files
committed
vector: bug fix: currentRowHeight was not updated correctly
Updates #3357
1 parent a0bbae6 commit 2a497a1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vector/atlas.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ func (a *atlas) setPaths(dstBounds image.Rectangle, paths []*Path, antialias boo
121121
atlasImageIndex++
122122
a.atlasSizes = append(a.atlasSizes, image.Point{})
123123
currentPosition.Y = 0
124+
currentRowHeight = s.Y
125+
} else {
126+
currentRowHeight = max(currentRowHeight, s.Y)
124127
}
125128
}
126129
a.atlasRegions[i].imageIndex = atlasImageIndex

0 commit comments

Comments
 (0)