yellowstonegames / SquidLib

Useful tools for roguelike, role-playing, strategy, and other grid-based games in Java. Feedback is welcome!
Other
454 stars 46 forks source link

IColoredString.Impl.wrap == to <= #118

Closed SquidPony closed 8 years ago

SquidPony commented 8 years ago

Line 277 in IColoredString.java checks if the passed in width is zero, but it should check instead for any value below 1 since the input is not otherwise checked.

I'm guessing there's other places this has happened, but I haven't done a search for it