diff options
Diffstat (limited to 'vcl/source/app/help.cxx')
-rw-r--r-- | vcl/source/app/help.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/source/app/help.cxx b/vcl/source/app/help.cxx index b968ca1aadc7..2dc76fbc7f25 100644 --- a/vcl/source/app/help.cxx +++ b/vcl/source/app/help.cxx @@ -52,6 +52,8 @@ #define HELPDELAY_SHORT 2 #define HELPDELAY_NONE 3 +#define HELPTEXTMAXLEN 150 + // ======================================================================= Help::Help() @@ -359,7 +361,7 @@ HelpTextWindow::~HelpTextWindow() void HelpTextWindow::SetHelpText( const String& rHelpText ) { maHelpText = rHelpText; - if ( mnHelpWinStyle == HELPWINSTYLE_QUICK ) + if ( mnHelpWinStyle == HELPWINSTYLE_QUICK && maHelpText.Len() < HELPTEXTMAXLEN) { Size aSize; aSize.Height() = GetTextHeight(); @@ -421,7 +423,7 @@ void HelpTextWindow::Paint( const Rectangle& ) } // paint text - if ( mnHelpWinStyle == HELPWINSTYLE_QUICK ) + if ( mnHelpWinStyle == HELPWINSTYLE_QUICK && maHelpText.Len() < HELPTEXTMAXLEN) { if ( mnStyle & QUICKHELP_CTRLTEXT ) DrawCtrlText( maTextRect.TopLeft(), maHelpText ); |