]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/fontutil.cpp
Added wxAutoNSAutoreleasePool to DoGetBestSize method
[wxWidgets.git] / src / unix / fontutil.cpp
index b1e8be165a8a3443ab4aa5caffa43ecc0bc43e66..e1521328fca140588fef7bb2566652b12c1ae464 100644 (file)
@@ -391,16 +391,20 @@ bool wxNativeFontInfo::FromXFontName(const wxString& fontname)
             return FALSE;
         }
 
-        fontElements[n] = tokenizer.GetNextToken();
+        wxString field = tokenizer.GetNextToken();
+        if ( !field.empty() && field != _T('*') )
+        {
+            // we're really initialized now
+            m_isDefault = FALSE;
+        }
+
+        fontElements[n] = field;
     }
 
     // this should be all
     if ( tokenizer.HasMoreTokens() )
         return FALSE;
 
-    // we're initialized now
-    m_isDefault = FALSE;
-
     return TRUE;
 }