]> git.saurik.com Git - wxWidgets.git/commitdiff
FontEnum fix: use NULL for global enumeration.
authorWłodzimierz Skiba <abx@abx.art.pl>
Thu, 9 Mar 2006 23:36:32 +0000 (23:36 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Thu, 9 Mar 2006 23:36:32 +0000 (23:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37941 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/fontenum.cpp

index dda6ca6185402ee203259660768831990ba19271..852ffea56d3fc27b1f9ae898a44e1abbb4de928b 100644 (file)
@@ -1,5 +1,5 @@
 ///////////////////////////////////////////////////////////////////////////////
-// Name:        msw/fontenum.cpp
+// Name:        src/msw/fontenum.cpp
 // Purpose:     wxFontEnumerator class for Windows
 // Author:      Julian Smart
 // Modified by: Vadim Zeitlin to add support for font encodings
@@ -158,8 +158,10 @@ void wxFontEnumeratorHelper::DoEnumerate()
     HDC hDC = ::GetDC(NULL);
 
 #ifdef __WXWINCE__
-    ::EnumFontFamilies(hDC, m_facename, (wxFONTENUMPROC)wxFontEnumeratorProc,
-                         (LPARAM)this) ;
+    ::EnumFontFamilies(hDC,
+                       m_facename.empty() ? NULL : m_facename.c_str(),
+                       (wxFONTENUMPROC)wxFontEnumeratorProc,
+                       (LPARAM)this) ;
 #else // __WIN32__
     LOGFONT lf;
     lf.lfCharSet = (BYTE)m_charset;