Skip to content

Commit fb6d206

Browse files
committed
Fixed off-by-1 error
1 parent 3be0c67 commit fb6d206

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buttons/text.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func getImageWithText(text string, textColour color.Color, backgroundColour colo
104104
width := 0
105105
for size = 1; size < 60; size++ {
106106
width = getTextWidth(text, size)
107-
if width > btnSize {
107+
if width >= btnSize {
108108
size = size - 1
109109
break
110110
}

0 commit comments

Comments
 (0)