]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/intl.cpp
fix WXDLLIMPEXP_STC definition when building all wx libraries as DLLs (patch 1704527)
[wxWidgets.git] / src / common / intl.cpp
index 0dcec7965268914baa6e5bb50b6317d28bd7eecc..7f92290966f291470ca300e2247e854690aed8fc 100644 (file)
@@ -1534,7 +1534,8 @@ bool wxLocale::Init(const wxString& name,
     // the argument to setlocale()
     szLocale = shortName;
 
     // the argument to setlocale()
     szLocale = shortName;
 
-    wxCHECK_MSG( szLocale, false, _T("no locale to set in wxLocale::Init()") );
+    wxCHECK_MSG( !szLocale.empty(), false,
+                 _T("no locale to set in wxLocale::Init()") );
   }
 
 #ifdef __WXWINCE__
   }
 
 #ifdef __WXWINCE__