wxLOCALE_LOAD_DEFAULT patch from Martijn Kuipers.
This commit is contained in:
parent
6b05cf315f
commit
b5019b823f
|
@ -666,10 +666,9 @@ bool WinEDA_App::SetLanguage( bool first_time )
|
||||||
delete m_Locale;
|
delete m_Locale;
|
||||||
m_Locale = new wxLocale;
|
m_Locale = new wxLocale;
|
||||||
|
|
||||||
if( !m_Locale->Init( m_LanguageId, wxLOCALE_CONV_ENCODING ) )
|
if( !m_Locale->Init( m_LanguageId ) )
|
||||||
{
|
{
|
||||||
wxLogDebug( wxT( "Failed to initialize " ) +
|
wxLogDebug( wxT("This language is not supported by the system.") );
|
||||||
wxLocale::GetLanguageInfo( m_LanguageId )->Description );
|
|
||||||
|
|
||||||
m_LanguageId = wxLANGUAGE_DEFAULT;
|
m_LanguageId = wxLANGUAGE_DEFAULT;
|
||||||
delete m_Locale;
|
delete m_Locale;
|
||||||
|
|
|
@ -720,6 +720,7 @@ void ShowNewTrackWhenMovingCursor( WinEDA_DrawPanel* panel,
|
||||||
|
|
||||||
// Set track parameters, that can be modified while creating the track
|
// Set track parameters, that can be modified while creating the track
|
||||||
g_CurrentTrackSegment->SetLayer( screen->m_Active_Layer );
|
g_CurrentTrackSegment->SetLayer( screen->m_Active_Layer );
|
||||||
|
if( !frame->GetBoard()->GetBoardDesignSettings()->m_UseConnectedTrackWidth )
|
||||||
g_CurrentTrackSegment->m_Width = frame->GetBoard()->GetCurrentTrackWidth();
|
g_CurrentTrackSegment->m_Width = frame->GetBoard()->GetCurrentTrackWidth();
|
||||||
|
|
||||||
if( g_TwoSegmentTrackBuild )
|
if( g_TwoSegmentTrackBuild )
|
||||||
|
|
Loading…
Reference in New Issue