summaryrefslogtreecommitdiff
path: root/fluid
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-12-02 16:21:49 +0100
committerMatthias Melcher <github@matthiasm.com>2023-12-02 16:21:56 +0100
commitd8dac2a0889cee0d5c81696e2f06b434119b7351 (patch)
tree8cecec4b408c3e009b2c9b19abad5d1ba35d91ab /fluid
parentf72748bb4563c07322846ae92cc9c02c0b448e5b (diff)
#858: FLUID: fixes control character replacement in widget browser
Diffstat (limited to 'fluid')
-rw-r--r--fluid/Fl_Function_Type.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/fluid/Fl_Function_Type.cxx b/fluid/Fl_Function_Type.cxx
index cce44b5d6..f47b77151 100644
--- a/fluid/Fl_Function_Type.cxx
+++ b/fluid/Fl_Function_Type.cxx
@@ -1774,7 +1774,7 @@ const char *Fl_Comment_Type::title() {
if (n==0) break;
if (n=='\r') { *d++ = '\\'; *d++ = 'r'; i--; }
else if (n=='\n') { *d++ = '\\'; *d++ = 'n'; i--; }
- else if (n<32) { *d++ = '^'; *d++ = 'A'+n; i--; }
+ else if ((n >= 0) && (n < 32)) { *d++ = '^'; *d++ = 'A'+n; i--; }
else *d++ = n;
}
if (i<=0) { *d++ = '.'; *d++ = '.'; *d++ = '.'; }