Clear text before replacing in ImportSettingsFrom.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16851
This commit is contained in:
Jeff Young 2024-02-01 17:36:28 +00:00
parent ff3288dab6
commit a485a4815c
1 changed files with 1 additions and 0 deletions

View File

@ -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' );
}