X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/db16cab4610b294c3412f6508754b55ef4a42895..bf918b97ed1ee60dbf296fa36764e6ac3e514b94:/src/gtk1/fontdlg.cpp diff --git a/src/gtk1/fontdlg.cpp b/src/gtk1/fontdlg.cpp index 4582a5c002..3dfb008131 100644 --- a/src/gtk1/fontdlg.cpp +++ b/src/gtk1/fontdlg.cpp @@ -77,7 +77,7 @@ void gtk_fontdialog_ok_callback( GtkWidget *WXUNUSED(widget), wxFontDialog *dial // printf( "font %s\n", fontname ); - dialog->SetChosenFont(fontname); + dialog->SetChosenFont( fontname); g_free( fontname ); @@ -181,7 +181,7 @@ wxFontDialog::~wxFontDialog() void wxFontDialog::SetChosenFont(const char *fontname) { - m_fontData.SetChosenFont(wxFont(fontname)); + m_fontData.SetChosenFont(wxFont( wxString::FromAscii(fontname) )); } #endif // wxUSE_FONTDLG