Browse Source

Don't mangle xclass names containing '-' or ' '.

tags/v1.3.1000
Jonathan Moore Liles 12 years ago
parent
commit
3afbfcc84c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Fl_x.cxx

+ 1
- 1
src/Fl_x.cxx View File

@@ -2053,7 +2053,7 @@ void Fl_X::make_xid(Fl_Window* win, XVisualInfo *visual, Colormap colormap)
char *p; const char *q;
// replace punctuation with underscores, because it breaks XResource lookup
for (p = buffer, q = win->xclass(); *q || (*q&128); q++)
*p++ = isalnum(*q) ? *q : '_';
*p++ = isalnum(*q) || *q == '-' || *q == ' ' ? *q : '_';
*p++ = 0;
// create the capitalized version:
q = buffer;


Loading…
Cancel
Save