summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES1
-rw-r--r--test/fonts.cxx6
2 files changed, 6 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 770f8b62b..aa688e228 100644
--- a/CHANGES
+++ b/CHANGES
@@ -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;