]> git.saurik.com Git - wxWidgets.git/commitdiff
don't assert if the locale couldn't be set in AddCatalog(), we should still be able...
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 14 Jan 2009 16:34:17 +0000 (16:34 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 14 Jan 2009 16:34:17 +0000 (16:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/intl.cpp

index 0dc780ac3182bdef22185f0b6cc13cf78635438c..e20715c4c75f842604ee1c65c3da87b5a88f683e 100644 (file)
@@ -2573,7 +2573,7 @@ bool wxLocale::AddCatalog(const wxString& szDomain,
                         const wxString& msgIdCharset)
 
 {
-    wxCHECK_MSG( IsOk(), false, "must initialize catalog first" );
+    wxCHECK_MSG( !m_strShort.empty(), false, "must initialize catalog first" );
 
 
     // It is OK to not load catalog if the msgid language and m_language match,