X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bb84929ec5b27eae5433982703dd6d0df89bfc2d..8f974c520a8733158591891458fda10fae4c3950:/samples/font/font.cpp?ds=inline 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()); }