Fix error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12376 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
7a6124bda6
commit
44a3f9fce9
@ -1344,7 +1344,7 @@ Fl_Font Fl_Xlib_Graphics_Driver::set_fonts(const char* pattern_name)
|
||||
pango_font_family_list_faces(families[fam], &faces, &n_faces);
|
||||
for (int j = 0; j < n_faces; j++) {
|
||||
char prefix = ' ', *q;
|
||||
const char *p = pango_font_face_get_face_name(faces[j]);
|
||||
char *p = (char*)pango_font_face_get_face_name(faces[j]);
|
||||
// build the font's FLTK name
|
||||
if (strcmp(p, "Regular") == 0) p = NULL;
|
||||
else if (strcmp(p, "Bold Italic") == 0 || strcmp(p, "Bold Oblique") == 0) {p = NULL; prefix = 'P';}
|
||||
|
Loading…
Reference in New Issue
Block a user