diff options
| -rw-r--r-- | CHANGES | 1 | ||||
| -rw-r--r-- | test/fonts.cxx | 6 |
2 files changed, 6 insertions, 1 deletions
@@ -2,6 +2,7 @@ CHANGES IN FLTK 1.1.7 - Documentation fixes (STR #648, STR #692, STR #730, STR #744, STR #745) + - Fixed unescaped '@' in fonts demo (STR #867) - Fluid should not open the Display connection anymore if creating code only (STR #904) - Improved hidden copy / ctor implementation (STR #860) diff --git a/test/fonts.cxx b/test/fonts.cxx index d6155495b..5e021f28a 100644 --- a/test/fonts.cxx +++ b/test/fonts.cxx @@ -110,7 +110,11 @@ void create_the_forms() { strcpy(label, "Hello, world!\n"); int i = strlen(label); uchar c; - for (c = ' '+1; c < 127; c++) {if (!(c&0x1f)) label[i++]='\n'; label[i++]=c;} + for (c = ' '+1; c < 127; c++) { + if (!(c&0x1f)) label[i++]='\n'; + if (c=='@') label[i++]=c; + label[i++]=c; + } label[i++] = '\n'; for (c = 0xA1; c; c++) {if (!(c&0x1f)) label[i++]='\n'; label[i++]=c;} label[i] = 0; |
