]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/font/font.cpp
1.
[wxWidgets.git] / samples / font / font.cpp
index 5fc9a0693ddcaf3c958dfc3cb30b3a30cf7b2398..5f35d6ab8feb6afe5a3d923dd6b5382e5a0b9c1c 100644 (file)
@@ -747,11 +747,9 @@ void MyCanvas::OnPaint( wxPaintEvent &WXUNUSED(event) )
 
     if ( m_font.Ok() )
     {
-        wxNativeFontInfo *info = m_font.GetNativeFontInfo();
+        const wxNativeFontInfo *info = m_font.GetNativeFontInfo();
         if ( info )
         {
-            delete info;
-
             wxString fontDesc = m_font.GetNativeFontInfoUserDesc();
             fontInfo.Printf(wxT("Native font info: %s"), fontDesc.c_str());
 
@@ -792,7 +790,7 @@ void MyCanvas::OnPaint( wxPaintEvent &WXUNUSED(event) )
     }
 
     // draw the lines between them
-    dc.SetPen(wxPen(wxColour("blue"), 1, wxSOLID));
+    dc.SetPen(wxPen(wxColour(_T("blue")), 1, wxSOLID));
     int l;
 
     // horizontal