]> git.saurik.com Git - wxWidgets.git/commitdiff
use new style ctor for wxFontDialog (patch 561411)
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 28 May 2002 16:52:49 +0000 (16:52 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 28 May 2002 16:52:49 +0000 (16:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/font/font.cpp

index b92b86b2550c6dfb193fb9c54448115887aa0359..7ef9add570cbb6feb6e4271e0004eda726464aba 100644 (file)
@@ -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();