Work around deadlock when destroying J2KEncoder with a full writer queue (#2784).
[dcpomatic.git] / src / wx / system_font_dialog.cc
index 84285de12e35c6d0e6f09a4f5f0bff7dc3e10ed5..9814ededd07e70ebc4bab5d524c814201be18425 100644 (file)
@@ -62,7 +62,7 @@ SystemFontDialog::SystemFontDialog (wxWindow* parent)
 
        int n = 0;
        for (auto i: _fonts) {
-               _list->InsertItem (n++, std_to_wx (i.leaf().stem().string ()));
+               _list->InsertItem(n++, std_to_wx(i.filename().stem().string()));
        }
 
        auto buttons = CreateSeparatedButtonSizer (wxOK | wxCANCEL);