diff --git a/common/dialog_shim.cpp b/common/dialog_shim.cpp index 0c96d81eca..b919fb6deb 100644 --- a/common/dialog_shim.cpp +++ b/common/dialog_shim.cpp @@ -339,7 +339,7 @@ static void selectAllInTextCtrls( wxWindowList& children ) { // Respect an existing selection } - else + else if( childTextCtrl->IsEditable() ) { childTextCtrl->SelectAll(); } @@ -353,7 +353,7 @@ static void selectAllInTextCtrls( wxWindowList& children ) { // Respect an existing selection } - else if( !scintilla->GetText().Contains( wxT( "\n") ) ) + else if( scintilla->IsEditable() ) { scintilla->SelectAll(); } diff --git a/eeschema/tools/simulator_control.cpp b/eeschema/tools/simulator_control.cpp index 0822b86d1d..87c575c445 100644 --- a/eeschema/tools/simulator_control.cpp +++ b/eeschema/tools/simulator_control.cpp @@ -375,6 +375,8 @@ public: textCtrl->SetLexer( wxSTC_LEX_SPICE ); + textCtrl->SetEditable( false ); + wxBoxSizer* sizer = new wxBoxSizer( wxVERTICAL ); sizer->Add( textCtrl, 1, wxEXPAND | wxALL, 5 ); SetSizer( sizer );