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:
parent
0ec445e7cb
commit
e5321f7401
@ -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' );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user