(Rob Lahaye): fix wrapping of long tooltips

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5455 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2002-10-21 11:13:01 +00:00
parent 46184275aa
commit 15096a4532
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2002-10-21 Rob Lahaye <lahaye@snu.ac.kr>
* Tooltips.C (init): pass the /formatted/ string to xforms...
2002-10-20 Lars Gullik Bjønnes <larsbj@gullik.net>
* XLyXKeySym.h: rename private var keysym to keysym_, add accessor

View File

@ -75,12 +75,13 @@ void Tooltips::init(FL_OBJECT * ob, string const & tip)
if (it != tooltipsMap.end())
return;
string const str = trim(tip);
string str = trim(tip);
if (str.empty())
return;
// Store the tooltip string
tooltipsMap[ob] = formatted(str, 400);
str = formatted(str, 400);
tooltipsMap[ob] = str;
// Set the tooltip
char const * const c_str = enabled_ ? str.c_str() : 0;