Ensure clipboard data is available after KiCad closes

Always Flush() after SetData()
This commit is contained in:
Roberto Fernandez Bautista
2021-05-03 19:38:31 +01:00
parent 5822cd85c4
commit ae009e0758
9 changed files with 10 additions and 0 deletions
@@ -299,6 +299,7 @@ void PANEL_SETUP_BOARD_STACKUP::onExportToClipboard( wxCommandEvent& event )
// This data objects are held by the clipboard,
// so do not delete them in the app.
wxTheClipboard->SetData( new wxTextDataObject( report ) );
wxTheClipboard->Flush(); // Allow data to be available after closing KiCad
wxTheClipboard->Close();
}
}