incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 42424] When hovered over a footnote reference in the text, footnotes appear in one line regardless of the length of footnote
Date Fri, 07 Sep 2012 12:47:25 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=42424

nemeth.lacko@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nemeth.lacko@gmail.com

--- Comment #6 from nemeth.lacko@gmail.com ---
patch
(http://cgit.freedesktop.org/libreoffice/core/diff/?id=675f723f83d110bec4a9a4c5fa09ad965d240d2a):

diff --git a/vcl/source/app/help.cxx b/vcl/source/app/help.cxx
index c57cb74..7a3f174 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()
@@ -358,7 +360,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();
@@ -420,7 +422,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 );
generated by cgit v0.9.0.2-2-gbebe at 2012-09-07 12:44:19 (GMT)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Mime
View raw message