From 27a9be5f700bc794d97980ba67a9eeabf6c12748 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Wed, 22 Apr 2009 08:45:15 +0000 Subject: Applied patch from STR# 2144 to solve hotspot problem with links inside
 text.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6775 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
---
 src/Fl_Help_View.cxx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'src')

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))
-- 
cgit v1.2.3