Browse Source

fixes #288: Crash when quickly closing several view contents.

pull/297/head
Siegfried Pammer 12 years ago
parent
commit
c63f521ec3
  1. 4
      src/Libraries/AvalonEdit/ICSharpCode.AvalonEdit/Rendering/TextView.cs

4
src/Libraries/AvalonEdit/ICSharpCode.AvalonEdit/Rendering/TextView.cs

@ -1621,14 +1621,14 @@ namespace ICSharpCode.AvalonEdit.Rendering @@ -1621,14 +1621,14 @@ namespace ICSharpCode.AvalonEdit.Rendering
[ThreadStatic] static bool invalidCursor;
/// <summary>
/// Updates the mouse cursor by calling <see cref="Mouse.UpdateCursor"/>, but with input priority.
/// Updates the mouse cursor by calling <see cref="Mouse.UpdateCursor"/>, but with background priority.
/// </summary>
public static void InvalidateCursor()
{
if (!invalidCursor) {
invalidCursor = true;
Dispatcher.CurrentDispatcher.BeginInvoke(
DispatcherPriority.Input,
DispatcherPriority.Background, // fixes issue #288
new Action(
delegate {
invalidCursor = false;

Loading…
Cancel
Save