From 0150be3d4a602ff91ef7aa80782dc1cf94e71d7a Mon Sep 17 00:00:00 2001 From: ySnoopyDogy Date: Mon, 6 Nov 2023 18:22:54 -0300 Subject: [PATCH] fix: panic on index access --- src/renderers/profiles/sunflower.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderers/profiles/sunflower.go b/src/renderers/profiles/sunflower.go index 0c47998..8cbc369 100644 --- a/src/renderers/profiles/sunflower.go +++ b/src/renderers/profiles/sunflower.go @@ -51,7 +51,7 @@ func RenderSunflower(User *utils.UserData, I18n *utils.I18n, db *database.Databa ctx.SetHexColor("#fff") ctx.SetFontFace(*utils.GetFont("Arial", 38)) - ctx.DrawStringAnchored(ctx.WordWrap(User.Title, 460)[0], 300, 660, 0.5, 0) + ctx.DrawStringAnchored(User.Title, 300, 660, 0.5, 0) utils.DrawBadges(ctx, User, 270, 155)