mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +00:00
(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:
parent
46184275aa
commit
15096a4532
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user