Browse Source

A better solution to keep SPICE netlist from being entirely selected.

Fixes https://gitlab.com/kicad/code/kicad/issues/14177
newinvert
Jeff Young 3 years ago
parent
commit
98d7b14dbc
  1. 4
      common/dialog_shim.cpp
  2. 2
      eeschema/tools/simulator_control.cpp

4
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();
}

2
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 );

Loading…
Cancel
Save