diff --git a/samples/font/font.cpp b/samples/font/font.cpp index b92b86b255..7ef9add570 100644 --- a/samples/font/font.cpp +++ b/samples/font/font.cpp @@ -544,7 +544,7 @@ void MyFrame::OnSelectFont(wxCommandEvent& WXUNUSED(event)) data.SetInitialFont(m_canvas->GetTextFont()); data.SetColour(m_canvas->GetColour()); - wxFontDialog dialog(this, &data); + wxFontDialog dialog(this, data); if ( dialog.ShowModal() == wxID_OK ) { wxFontData retData = dialog.GetFontData();