Browse Source

Quiet wxWidgets assert (KICAD-XJ2).

pull/18/head
Jeff Young 5 months ago
parent
commit
2d2ba268ae
  1. 5
      common/widgets/listbox_tricks.cpp

5
common/widgets/listbox_tricks.cpp

@ -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…
Cancel
Save