Fix a link issue on some platforms, created by rev 6429

This commit is contained in:
jean-pierre charras 2016-01-06 12:08:43 +01:00
parent dda957a048
commit f76c9376e0
1 changed files with 4 additions and 1 deletions

View File

@ -388,7 +388,10 @@ void KIWAY::SetLanguage( int aLanguage )
// the array below.
if( m_ctl & KFCTL_CPP_PROJECT_SUITE )
{
EDA_BASE_FRAME* top = dynamic_cast<EDA_BASE_FRAME*>( m_top );
// A dynamic_cast could be better, but creates link issues
// (some basic_frame functions not found) on some platforms,
// so a static_cast is used.
EDA_BASE_FRAME* top = static_cast<EDA_BASE_FRAME*>( m_top );
if( top )
top->ShowChangedLanguage();