From 77998d7c5137b645f8191e28d47cd4aef44e31ea Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 14 Dec 2022 14:13:25 +0000 Subject: [PATCH] Better fix for not selecting all of netlist. --- common/dialog_shim.cpp | 2 +- eeschema/sim/sim_plot_frame.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/common/dialog_shim.cpp b/common/dialog_shim.cpp index 2ba8ebd72e..e6a4de0e82 100644 --- a/common/dialog_shim.cpp +++ b/common/dialog_shim.cpp @@ -354,7 +354,7 @@ static void selectAllInTextCtrls( wxWindowList& children ) { // Respect an existing selection } - else + else if( !scintilla->GetText().Contains( wxT( "\n") ) ) { scintilla->SelectAll(); } diff --git a/eeschema/sim/sim_plot_frame.cpp b/eeschema/sim/sim_plot_frame.cpp index 470068435c..2a4fff6fe2 100644 --- a/eeschema/sim/sim_plot_frame.cpp +++ b/eeschema/sim/sim_plot_frame.cpp @@ -1621,7 +1621,6 @@ void SIM_PLOT_FRAME::onShowNetlist( wxCommandEvent& event ) textCtrl->SetWrapMode( wxSTC_WRAP_WORD ); textCtrl->SetText( source ); - textCtrl->ClearSelections(); textCtrl->SetLexer( wxSTC_LEX_SPICE );