summaryrefslogtreecommitdiff
path: root/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2017-04-12 12:41:47 +0000
committerManolo Gouy <Manolo>2017-04-12 12:41:47 +0000
commited807788ff4c5c444a073f9e730ddbd9b8f302e5 (patch)
treeb22b1d3ce8d945654802dbbc14071706d31a0208 /src/drivers/Xlib/Fl_Xlib_Graphics_Driver.cxx
parentcd10796251a88e001fbdbf9d95e6a841b2ad06a8 (diff)
Fix for STR#3374: Crash with pango enabled when changing default font
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12218 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/Xlib/Fl_Xlib_Graphics_Driver.cxx')
-rw-r--r--src/drivers/Xlib/Fl_Xlib_Graphics_Driver.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.cxx b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.cxx
index b359069e8..6d6cff681 100644
--- a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.cxx
+++ b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.cxx
@@ -187,6 +187,9 @@ const char *Fl_Xlib_Graphics_Driver::font_name(int num) {
}
void Fl_Xlib_Graphics_Driver::font_name(int num, const char *name) {
+#if USE_PANGO
+ init_built_in_fonts();
+#endif
Fl_Fontdesc *s = fl_fonts + num;
if (s->name) {
if (!strcmp(s->name, name)) {s->name = name; return;}