A better solution to keep SPICE netlist from being entirely selected.
Fixes https://gitlab.com/kicad/code/kicad/issues/14177
This commit is contained in:
parent
65c9988d45
commit
98d7b14dbc
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue