From 5991a49ffe9f0a31d17302c77b81f6bba05ff787 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Tue, 31 May 2016 11:32:25 +0000 Subject: Hopefully final fix of HTML entity handling git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11764 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Help_View.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Fl_Help_View.cxx b/src/Fl_Help_View.cxx index 9ecef37a0..c4d7a820e 100644 --- a/src/Fl_Help_View.cxx +++ b/src/Fl_Help_View.cxx @@ -3098,8 +3098,8 @@ void Fl_Help_View::end_selection(int clipboard) } int n = (int) (s2-value_); if (n>selection_first && n<=selection_last) { - if (!pre && isspace(c)) c = ' '; - if (p!=' ' || c!=' ') { + if (!pre && c < 256 && isspace(c)) c = ' '; + if (p != ' ' || c != ' ') { if (s2 != s) { // c was an HTML entity d += fl_utf8encode(c, d); } @@ -3111,7 +3111,7 @@ void Fl_Help_View::end_selection(int clipboard) } *d = 0; Fl::copy(txt, (int) strlen(txt), clipboard); -//printf("copy [%s]\n", txt); + // printf("copy [%s]\n", txt); free(txt); } -- cgit v1.2.3