]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/font/font.cpp
added container class files
[wxWidgets.git] / samples / font / font.cpp
index 00719a113f5a1d528ddb306a7efd8782d8c6bd26..d919ea6a59c6f8b07299fc15b17dd66f6fc10a5a 100644 (file)
@@ -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());
     }