diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2016-05-31 11:32:25 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2016-05-31 11:32:25 +0000 |
| commit | 5991a49ffe9f0a31d17302c77b81f6bba05ff787 (patch) | |
| tree | 3cfae21777fa63beff66e64ccd27970e623df0d3 /src | |
| parent | dc7d04c8894294155780b5faff466f7a6ab2aedc (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Help_View.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |
