mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Quiet wxWidgets assert (KICAD-XJ2).
This commit is contained in:
parent
8d07eb7f24
commit
2d2ba268ae
@ -165,9 +165,12 @@ void LISTBOX_TRICKS::listBoxPaste()
|
||||
wxTheClipboard->Close();
|
||||
}
|
||||
|
||||
if( lines.IsEmpty() )
|
||||
return;
|
||||
|
||||
wxArrayInt selections;
|
||||
m_listBox.GetSelections( selections );
|
||||
int insertAt = selections.GetCount() > 0 ? selections.back() + 1 : m_listBox.GetCount();
|
||||
int insertAt = selections.GetCount() > 0 ? (int) selections.back() + 1 : (int) m_listBox.GetCount();
|
||||
|
||||
for( wxString& line : lines )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user