set m_language even when wxstd.mo wasn't loaded
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24671 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1659,7 +1659,7 @@ bool wxLocale::Init(int language, int flags)
|
||||
(flags & wxLOCALE_CONV_ENCODING) != 0);
|
||||
free(szLocale);
|
||||
|
||||
if ( ret )
|
||||
if (IsOk()) // setlocale() succeeded
|
||||
m_language = lang;
|
||||
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user