aboutsummaryrefslogtreecommitdiffstatsci
path: root/Tests/CrowWindow.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2019-03-29 17:11:58 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2019-03-29 17:11:58 +0100
commit616e26d066c2986e02889fa1aa95f69c9334f86f (patch)
tree6e28359fee135219b7c77543f8a0ac455cf0facf /Tests/CrowWindow.cs
parentf1531e562b4ecd9d568a28c2fffe7ffed06c728a (diff)
fix mouse move error when no iml is loaded0.7.3fix0-7-2
Diffstat (limited to 'Tests/CrowWindow.cs')
-rw-r--r--Tests/CrowWindow.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/Tests/CrowWindow.cs b/Tests/CrowWindow.cs
index 1be9bb45..862a81b2 100644
--- a/Tests/CrowWindow.cs
+++ b/Tests/CrowWindow.cs
@@ -350,9 +350,11 @@ namespace Crow
return;
}
}
- } if (ifaceControl [focusedIdx].ProcessMouseMove (otk_e.X, otk_e.Y))
- return;
-
+ }
+ if (focusedIdx >= 0) {
+ if (ifaceControl [focusedIdx].ProcessMouseMove (otk_e.X, otk_e.Y))
+ return;
+ }
CrowMouseMove.Raise (sender, otk_e);
}
protected virtual void GL_Mouse_ButtonUp(object sender, OpenTK.Input.MouseButtonEventArgs otk_e)