vcl/source/app/help.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 3ba0ea447d88856da2e08db3ad3b12c0a7f622d3 Author: Regina Henschel <[email protected]> AuthorDate: Wed Oct 15 19:44:32 2025 +0200 Commit: Adolfo Jayme Barrientos <[email protected]> CommitDate: Fri Oct 17 13:13:22 2025 +0200 tdf#168861 tooltip line wrap for length > 100 char The current threshold is 150 characters. However, this results in very wide normal tooltips that are hard to read. Therefore, the threshold is reduced to 100 characters. The value 100 was chosen because it is currently already used as threashold for cases where the text contains line breaks. If the tooltip length is smaller than 100 characters, the tooltip is displayed in a single line. This behavior does not change with this patch. The threshold was introduced for OOo bug i42424 to force a line wrap in the footnote balloon rectangle that is shown when you hover over a footnote anchor with the mouse. I don't know how to test the width of such a temporary tooltip rectangle in a unit test. Thus a unit test is missing. Change-Id: I7e4c47e5212f0af2510878ef2c3d6475d1d5ba46 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192458 Reviewed-by: Michael Weghorn <[email protected]> Tested-by: Jenkins Reviewed-by: Regina Henschel <[email protected]> (cherry picked from commit 34612217f8a027b940169899eb5c5514155649df) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192570 diff --git a/vcl/source/app/help.cxx b/vcl/source/app/help.cxx index fc8340a489fb..4a4b30fdb4c1 100644 --- a/vcl/source/app/help.cxx +++ b/vcl/source/app/help.cxx @@ -37,7 +37,7 @@ #define HELPTEXTMARGIN_QUICK 3 #define HELPTEXTMARGIN_BALLOON 6 -#define HELPTEXTMAXLEN 150 +#define HELPTEXTMAXLEN 100 static void ImplShowHelpWindow(vcl::Window* pParent, HelpWinStyle eHelpWinStyle, QuickHelpFlags nStyle, const OUString& rHelpText,
