Browse Source

Fix cutting text from editor when the Clipboard class throws an ExternalException.

http://community.sharpdevelop.net/forums/t/21713.aspx
pull/507/head
Daniel Grunwald 11 years ago
parent
commit
8485318396
  1. 1
      src/Libraries/AvalonEdit/ICSharpCode.AvalonEdit/Editing/EditingCommandHandler.cs

1
src/Libraries/AvalonEdit/ICSharpCode.AvalonEdit/Editing/EditingCommandHandler.cs

@ -342,7 +342,6 @@ namespace ICSharpCode.AvalonEdit.Editing @@ -342,7 +342,6 @@ namespace ICSharpCode.AvalonEdit.Editing
} catch (ExternalException) {
// Apparently this exception sometimes happens randomly.
// The MS controls just ignore it, so we'll do the same.
return false;
}
string text = textArea.Selection.GetText();

Loading…
Cancel
Save