This is an automated email from the ASF dual-hosted git repository.
mseidel pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/trunk by this push:
new 9702d0ce8c Some nicer code from László from:
https://bz.apache.org/ooo/show_bug.cgi?id=42424
9702d0ce8c is described below
commit 9702d0ce8cc3f899cca238610ec3610cb6925565
Author: mseidel <[email protected]>
AuthorDate: Fri Oct 31 20:07:40 2025 +0100
Some nicer code from László from:
https://bz.apache.org/ooo/show_bug.cgi?id=42424
---
main/vcl/source/app/help.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/main/vcl/source/app/help.cxx b/main/vcl/source/app/help.cxx
index 4d3c4c3d9d..a65e9146f1 100644
--- a/main/vcl/source/app/help.cxx
+++ b/main/vcl/source/app/help.cxx
@@ -42,6 +42,7 @@
#define HELPTEXTMARGIN_QUICK 4
#define HELPTEXTMARGIN_BALLOON 4 // same margin as quickhelp
+#define HELPTEXTMAXLEN 100
#define HELPDELAY_NORMAL 1
#define HELPDELAY_SHORT 2
@@ -398,7 +399,7 @@ HelpTextWindow::~HelpTextWindow()
void HelpTextWindow::SetHelpText( const String& rHelpText )
{
maHelpText = rHelpText;
- if ( mnHelpWinStyle == HELPWINSTYLE_QUICK && maHelpText.Len() < 100 )
+ if ( mnHelpWinStyle == HELPWINSTYLE_QUICK && maHelpText.Len() <
HELPTEXTMAXLEN )
{
Size aSize;
aSize.Height() = GetTextHeight();
@@ -465,7 +466,7 @@ void HelpTextWindow::Paint( const Rectangle& )
}
// paint text
- if ( mnHelpWinStyle == HELPWINSTYLE_QUICK && maHelpText.Len() < 100 )
+ if ( mnHelpWinStyle == HELPWINSTYLE_QUICK && maHelpText.Len() <
HELPTEXTMAXLEN )
{
if ( mnStyle & QUICKHELP_CTRLTEXT )
DrawCtrlText( maTextRect.TopLeft(), maHelpText );