Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion External/OxyPlot/OxyPlot.WindowsForms/Plot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,23 @@ private void SetClipboardText(string text)
{
// todo: can't get the following solution to work
// http://stackoverflow.com/questions/5707990/requested-clipboard-operation-did-not-succeed
Clipboard.SetText(text);
for (int i = 0; i < 10; i++)
{
try
{
Clipboard.SetText(text);
return;
}
catch (ExternalException)
{
if (i == 9)
{
throw;
}

System.Threading.Thread.Sleep(50);
}
}
}
catch (ExternalException ee)
{
Expand Down