From c8c776a71daf28beb659efc385f8d34b90176d05 Mon Sep 17 00:00:00 2001
From: Rye Mutt <rye@alchemyviewer.org>
Date: Mon, 8 Jan 2024 22:49:52 -0500
Subject: [PATCH] Fix revert

---
 indra/llui/lltextbase.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp
index f70f26f880f..3636d15fb0c 100644
--- a/indra/llui/lltextbase.cpp
+++ b/indra/llui/lltextbase.cpp
@@ -3684,7 +3684,7 @@ bool LLNormalTextSegment::getDimensionsF32(S32 first_char, S32 num_chars, F32& w
 		height = mFontHeight;
 		const LLWString &text = getWText();
 		// if last character is a newline, then return true, forcing line break
-		width = mStyle->getFont()->getWidthF32(text.c_str(), mStart + first_char, num_chars, false);
+		width = mStyle->getFont()->getWidthF32(text.c_str(), mStart + first_char, num_chars, true) + 1.f;
 	}
 	return false;
 }
-- 
GitLab