From 44a3f9fce9085bfdb8057f7e3299ee88622ece7c Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sat, 12 Aug 2017 15:28:44 +0000 Subject: =?UTF-8?q?Fix=20error:=20invalid=20conversion=20from=20=E2=80=98c?= =?UTF-8?q?onst=20char*=E2=80=99=20to=20=E2=80=98char*=E2=80=99=20[-fpermi?= =?UTF-8?q?ssive]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12376 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/drivers/Xlib/Fl_Xlib_Graphics_Driver_font_xft.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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';} -- cgit v1.2.3