Clear text before replacing in ImportSettingsFrom.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16851
This commit is contained in:
parent
ff3288dab6
commit
a485a4815c
|
@ -795,6 +795,7 @@ void PANEL_SETUP_RULES::ImportSettingsFrom( BOARD* aBoard )
|
||||||
for ( wxString str = file.GetFirstLine(); !file.Eof(); str = file.GetNextLine() )
|
for ( wxString str = file.GetFirstLine(); !file.Eof(); str = file.GetNextLine() )
|
||||||
{
|
{
|
||||||
ConvertSmartQuotesAndDashes( &str );
|
ConvertSmartQuotesAndDashes( &str );
|
||||||
|
m_textEditor->ClearAll();
|
||||||
m_textEditor->AddText( str << '\n' );
|
m_textEditor->AddText( str << '\n' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue