DIALOG_SIM_SETTINGS: fix incorrect validation of DC souces in DC Transfer panel

From Master branch
Fixes #10568
https://gitlab.com/kicad/code/kicad/issues/10568
This commit is contained in:
jean-pierre charras 2022-01-23 16:21:53 +01:00
parent 60ae18893e
commit 029e42f8d1
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ bool DIALOG_SIM_SETTINGS::TransferDataFromWindow()
else
simCmd += " " + src2;
if( m_dcSource1->GetSelection() == m_dcSource2->GetSelection() )
if( m_dcSource1->GetStringSelection() == m_dcSource2->GetStringSelection() )
{
DisplayError( this, _( "Source 1 and Source 2 must be different" ) );
return false;