Browse Source

Clear text before replacing in ImportSettingsFrom.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16851
newinvert
Jeff Young 2 years ago
parent
commit
a485a4815c
  1. 1
      pcbnew/dialogs/panel_setup_rules.cpp

1
pcbnew/dialogs/panel_setup_rules.cpp

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

Loading…
Cancel
Save