>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
Angus> On Sunday 20 October 2002 12:45 pm, Rob Lahaye wrote: >> Hi, >> >> Angus? >> >> Long tooltips strings are not wrapped with a certain lengths >> anymore. E.g. try the Graphics dialog/File/Do not unzip. This long >> tooltips text shoots off my display!! Angus> Hi, Rob. Angus> Add a print statement to the end of formatted() in Angus> xforms_helpers.C to check that the string has line breaks Angus> inserted as expected. Can this be related to the fix suggested by rob that I applied? 2002-10-09 Jean-Marc Lasgouttes <[EMAIL PROTECTED]> * xforms_helpers.C (formatted): fix small typo, spotted by Rob Lahaye For reference, the change was --- xforms_helpers.C 5 Sep 2002 15:14:23 -0000 1.49 +++ xforms_helpers.C 9 Oct 2002 14:38:18 -0000 1.50 @@ -189,7 +189,7 @@ string formatted(string const & sin, int for(;;) { string::size_type const nxtpos1 = sin.find(' ', curpos); string::size_type const nxtpos2 = sin.find('\n', curpos); - string::size_type const nxtpos = std::min(nxtpos1, nxtpos1); + string::size_type const nxtpos = std::min(nxtpos1, nxtpos2); string const word = nxtpos == string::npos ? sin.substr(curpos) : sin.substr(curpos, nxtpos-curpos); JMarc