diff --git a/src/gtk/fontdlg.cpp b/src/gtk/fontdlg.cpp index 10352b6375..b6117da0b0 100644 --- a/src/gtk/fontdlg.cpp +++ b/src/gtk/fontdlg.cpp @@ -154,7 +154,7 @@ bool wxFontDialog::DoCreate(wxWindow *parent) wxFont font = m_fontData.GetInitialFont(); if( font.Ok() ) { - wxNativeFontInfo *info = font.GetNativeFontInfo(); + const wxNativeFontInfo *info = font.GetNativeFontInfo(); if ( info ) { diff --git a/src/gtk1/fontdlg.cpp b/src/gtk1/fontdlg.cpp index 10352b6375..b6117da0b0 100644 --- a/src/gtk1/fontdlg.cpp +++ b/src/gtk1/fontdlg.cpp @@ -154,7 +154,7 @@ bool wxFontDialog::DoCreate(wxWindow *parent) wxFont font = m_fontData.GetInitialFont(); if( font.Ok() ) { - wxNativeFontInfo *info = font.GetNativeFontInfo(); + const wxNativeFontInfo *info = font.GetNativeFontInfo(); if ( info ) {