diff options
| author | Manolo Gouy <Manolo> | 2017-08-12 15:28:44 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-08-12 15:28:44 +0000 |
| commit | 44a3f9fce9085bfdb8057f7e3299ee88622ece7c (patch) | |
| tree | 3da4685c90efb88a53a870b649e8ddd26ac31b96 /src | |
| parent | 7a6124bda69b1192cbc2a72f47cf5dc344bf68d0 (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/drivers/Xlib/Fl_Xlib_Graphics_Driver_font_xft.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_font_xft.cxx b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_font_xft.cxx index d8e0b39f4..c3f6efa2b 100644 --- a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_font_xft.cxx +++ b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_font_xft.cxx @@ -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';} |
