7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 00:21:25 +00:00

Fix broken logic.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18580
This commit is contained in:
Jeff Young 2024-08-22 18:57:27 -06:00
parent 0ec445e7cb
commit e5321f7401

View File

@ -848,10 +848,11 @@ void PANEL_SETUP_RULES::ImportSettingsFrom( BOARD* aBoard )
if( file.Open() )
{
m_textEditor->ClearAll();
for ( wxString str = file.GetFirstLine(); !file.Eof(); str = file.GetNextLine() )
{
ConvertSmartQuotesAndDashes( &str );
m_textEditor->ClearAll();
m_textEditor->AddText( str << '\n' );
}