diff options
| author | Greg Ercolano <erco@seriss.com> | 2009-04-22 08:45:15 +0000 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2009-04-22 08:45:15 +0000 |
| commit | 27a9be5f700bc794d97980ba67a9eeabf6c12748 (patch) | |
| tree | 9534d69f22eec0e042ab1a30e31124581584a8ee /src/Fl_Help_View.cxx | |
| parent | 6de77851feee37f407b198e38910cb8a38ada157 (diff) | |
Applied patch from STR# 2144 to solve hotspot problem
with links inside <pre> text.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6775 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Help_View.cxx')
| -rw-r--r-- | src/Fl_Help_View.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Fl_Help_View.cxx b/src/Fl_Help_View.cxx index edc3ac3fe..302fc61c9 100644 --- a/src/Fl_Help_View.cxx +++ b/src/Fl_Help_View.cxx @@ -1740,7 +1740,9 @@ void Fl_Help_View::format() { else if (isspace((*ptr)&255)) { needspace = 1; - + if ( pre ) { + xx += (int)fl_width(' '); + } ptr ++; } else if (*ptr == '&' && s < (buf + sizeof(buf) - 1)) |
