X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bb84929ec5b27eae5433982703dd6d0df89bfc2d..08a092f9f4de6c80a2d43d4072c379ac84e6cc2f:/samples/font/font.cpp?ds=sidebyside diff --git a/samples/font/font.cpp b/samples/font/font.cpp index 00719a113f..d919ea6a59 100644 --- a/samples/font/font.cpp +++ b/samples/font/font.cpp @@ -678,7 +678,7 @@ void MyCanvas::OnPaint( wxPaintEvent &WXUNUSED(event) ) if ( m_font.Ok() ) { wxString fontDesc = m_font.GetNativeFontInfoDesc(); - dc.SetFont(wxFont(fontDesc)); + dc.SetFont(m_font); fontInfo.Printf("Native font info: %s", fontDesc.c_str()); dc.DrawText(fontInfo, 5, 5 + dc.GetCharHeight()); }