]> git.saurik.com Git - wxWidgets.git/commitdiff
oops, forgot to commit wxFontBase::SetNativeFontInfo implementation
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 21 Dec 2001 19:54:23 +0000 (19:54 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 21 Dec 2001 19:54:23 +0000 (19:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13152 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/fontcmn.cpp

index 1a8b50c376d30baa812e624dec511c5efa8880f4..1cc5f55b455ea98f01430864e2a2afdf9fbe63ce 100644 (file)
@@ -122,6 +122,15 @@ wxString wxFontBase::GetNativeFontInfoDesc() const
     return fontDesc;
 }
 
+void wxFontBase::SetNativeFontInfo(const wxString& info)
+{
+    wxNativeFontInfo fontInfo;
+    if ( !info.empty() && fontInfo.FromString(info) )
+    {
+        SetNativeFontInfo(fontInfo);
+    }
+}
+
 wxFont& wxFont::operator=(const wxFont& font)
 {
     if ( this != &font )